Skip to content

Commit 734b94c

Browse files
committed
esp32/mphalport: Release GIL while sleeping in stdin_rx_char.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
1 parent 414b59d commit 734b94c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/esp32/mphalport.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ int mp_hal_stdin_rx_chr(void) {
107107
return c;
108108
}
109109
MICROPY_EVENT_POLL_HOOK
110+
MP_THREAD_GIL_EXIT();
110111
ulTaskNotifyTake(pdFALSE, 1);
112+
MP_THREAD_GIL_ENTER();
111113
}
112114
}
113115

0 commit comments

Comments
 (0)