Merge pull request #6046 from prplz/espressif-enter-repl-delayed-fix

Fix press any key responding slowly on espressif
This commit is contained in:
Scott Shawcroft 2022-02-16 21:58:29 -08:00 committed by GitHub
commit ab037bd216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,3 +138,10 @@ void tud_cdc_rx_wanted_cb(uint8_t itf, char wanted_char) {
mp_sched_keyboard_interrupt(); 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();
}