Fix press any key responding slowly on espressif

This commit is contained in:
Michael Himing 2022-02-17 12:57:27 +11:00
parent 3a0892df79
commit bfb897a0b8
1 changed files with 7 additions and 0 deletions

View File

@ -138,3 +138,10 @@ void tud_cdc_rx_wanted_cb(uint8_t itf, char wanted_char) {
mp_sched_keyboard_interrupt();
}
}
void tud_cdc_rx_cb(uint8_t itf) {
(void)itf;
// Workaround for "press any key to enter REPL" response being delayed on espressif.
// Wake main task when any key is pressed.
port_wake_main_task();
}