Skip to content
Commit 1738f0e6 authored by Joakim Andersson's avatar Joakim Andersson Committed by Carles Cufí
Browse files

console: tty: Fix k_sem_take with wait time from ISR



Fix k_sem_take called with a timeout value other than K_NO_WAIT from
isr.
This happens when tty_irq_input_hook calls tty_putchar with the `~`
character to give the user a clue that input was lost.

This resulted in the following assert in sem.c:
	ASSERTION FAIL @ WEST_TOPDIR/zephyr/kernel/sem.c:140

Signed-off-by: default avatarJoakim Andersson <joakim.andersson@nordicsemi.no>
parent e4af41ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment