|
@@ -164,13 +164,13 @@ static void lv_kb_event_cb(lv_obj_t *kb, lv_event_t event) {
|
164
|
164
|
draw_return_ui();
|
165
|
165
|
break;
|
166
|
166
|
case GCodeCommand:
|
167
|
|
- if (!queue.ring_buffer.full(3)) {
|
168
|
|
- // Hook anything that goes to the serial port
|
|
167
|
+ if (ret_ta_txt[0] && !queue.ring_buffer.full(3)) {
|
|
168
|
+ // Hook for the next bytes to arrive from the serial port
|
169
|
169
|
MYSERIAL1.setHook(lv_serial_capt_hook, lv_eom_hook, 0);
|
170
|
|
- queue.enqueue_one_now(ret_ta_txt);
|
|
170
|
+ // Run the command as soon as possible
|
|
171
|
+ queue.inject(ret_ta_txt);
|
171
|
172
|
}
|
172
|
|
- lv_clear_keyboard();
|
173
|
|
- // draw_return_ui is called in the end of message hook
|
|
173
|
+ goto_previous_ui();
|
174
|
174
|
break;
|
175
|
175
|
default: break;
|
176
|
176
|
}
|