From 1c0dc2ac3e35d6afe8099af121065c307bf6defd Mon Sep 17 00:00:00 2001 From: danicampora Date: Thu, 5 Sep 2024 17:53:07 +0200 Subject: [PATCH] zephyr/src: Remove k_yield() at the end of console_irq_input_hook(). Some boards like the nrf52840dk crash immediatelly after boot when k_yield() is executed in this function. It also makes the REPL randomly lock up on other boards like the nucleo_wb55rg. Signed-off-by: danicampora --- ports/zephyr/src/zephyr_getchar.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ports/zephyr/src/zephyr_getchar.c b/ports/zephyr/src/zephyr_getchar.c index 0dc8a15bdddc..3dd87137733c 100644 --- a/ports/zephyr/src/zephyr_getchar.c +++ b/ports/zephyr/src/zephyr_getchar.c @@ -46,7 +46,6 @@ static int console_irq_input_hook(uint8_t ch) { } // printk("%x\n", ch); k_sem_give(&uart_sem); - k_yield(); return 1; }