diff options
author | Keith Packard <keithp@keithp.com> | 2018-08-05 12:19:59 +0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-08-15 15:40:15 -0700 |
commit | 1bbef0879ad86dfc21610a255e6cbca1b94b5d1a (patch) | |
tree | 6e8cef5446717990f2a23e7e8cd72052aeba66c9 /src/lpc | |
parent | f16d1e3a2f074b96aae6b9053e8e9e03bd282741 (diff) |
altos/lpc: Fix stdio wakeup on serial IRQ
Should just use USE_SERIAL_0_STDIN directly
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc')
-rw-r--r-- | src/lpc/ao_serial_lpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 } } |