From: Keith Packard Date: Sun, 5 Aug 2018 04:19:59 +0000 (+0800) Subject: altos/lpc: Fix stdio wakeup on serial IRQ X-Git-Tag: 1.8.7~3^2~61 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=1bbef0879ad86dfc21610a255e6cbca1b94b5d1a;ds=sidebyside altos/lpc: Fix stdio wakeup on serial IRQ Should just use USE_SERIAL_0_STDIN directly Signed-off-by: Keith Packard --- diff --git a/src/lpc/ao_serial_lpc.c b/src/lpc/ao_serial_lpc.c index 0011744d..d5cf930a 100644 --- a/src/lpc/ao_serial_lpc.c +++ b/src/lpc/ao_serial_lpc.c @@ -66,8 +66,9 @@ lpc_usart_isr(void) } if (wake_input) { ao_wakeup(&ao_usart_rx_fifo); - if (stdin) - ao_wakeup(&ao_stdin_ready); +#if USE_SERIAL_0_STDIN + ao_wakeup(&ao_stdin_ready); +#endif } }