Skip to content

Commit bfb897a

Browse files
committed
Fix press any key responding slowly on espressif
1 parent 3a0892d commit bfb897a

File tree

1 file changed

+7
-0
lines changed
  • ports/espressif/supervisor

1 file changed

+7
-0
lines changed

ports/espressif/supervisor/usb.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,10 @@ void tud_cdc_rx_wanted_cb(uint8_t itf, char wanted_char) {
138138
mp_sched_keyboard_interrupt();
139139
}
140140
}
141+
142+
void tud_cdc_rx_cb(uint8_t itf) {
143+
(void)itf;
144+
// Workaround for "press any key to enter REPL" response being delayed on espressif.
145+
// Wake main task when any key is pressed.
146+
port_wake_main_task();
147+
}

0 commit comments

Comments
 (0)