summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2024-09-05 17:53:07 +0200
committerDamien George <damien@micropython.org>2024-09-06 20:48:05 +1000
commit1c0dc2ac3e35d6afe8099af121065c307bf6defd (patch)
treea5708ded910761c94b12b4dbd00758e269e4bdc8
parent74d6dba29423ab92846bb3f1b071d1f500b89efa (diff)
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 <danicampora@gmail.com>
-rw-r--r--ports/zephyr/src/zephyr_getchar.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ports/zephyr/src/zephyr_getchar.c b/ports/zephyr/src/zephyr_getchar.c
index 0dc8a15bd..3dd871377 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;
}