Number serial from 1 to match settings
This commit is contained in:
@@ -80,7 +80,7 @@ void lv_serial_capt_hook(void * userPointer, uint8_t c)
|
||||
void lv_eom_hook(void *)
|
||||
{
|
||||
// Message is done, let's remove the hook now
|
||||
MYSERIAL0.setHook();
|
||||
MYSERIAL1.setHook();
|
||||
// We are back from the keyboard, so let's redraw ourselves
|
||||
draw_return_ui();
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ static void lv_kb_event_cb(lv_obj_t *kb, lv_event_t event) {
|
||||
case GCodeCommand:
|
||||
if (!queue.ring_buffer.full(3)) {
|
||||
// Hook anything that goes to the serial port
|
||||
MYSERIAL0.setHook(lv_serial_capt_hook, lv_eom_hook, 0);
|
||||
MYSERIAL1.setHook(lv_serial_capt_hook, lv_eom_hook, 0);
|
||||
queue.enqueue_one_now(ret_ta_txt);
|
||||
}
|
||||
lv_clear_keyboard();
|
||||
|
||||
Reference in New Issue
Block a user