static uint8_t model_device_change (char *name, float x, float y, int8_t button, float data, uint8_t action) { device_set_callback(model_device_set); device_reset_filter(); device_add_filter("ttyUSB"); device_add_filter("ttyACM"); device_add_filter("ttyS"); device_add_filter("cu."); device_set_mode(setup.view_mode); return 0; }
uint8_t system_device_change(char *name, float x, float y, int8_t button, float data, uint8_t action) { strncpy(port_selected, name, 99); device_set_callback(system_device_set); device_reset_filter(); device_add_filter("ttyUSB"); device_add_filter("ttyACM"); device_add_filter("ttyS"); device_add_filter("cu."); device_set_mode(VIEW_MODE_SYSTEM); return 0; }