altos/lpc: Fix stdio wakeup on serial IRQ
authorKeith Packard <keithp@keithp.com>
Sun, 5 Aug 2018 04:19:59 +0000 (12:19 +0800)
committerKeith Packard <keithp@keithp.com>
Wed, 15 Aug 2018 22:40:15 +0000 (15:40 -0700)
Should just use USE_SERIAL_0_STDIN directly

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_serial_lpc.c

index 0011744d2e931258e1c76898d2a2a8f7e8e86cc4..d5cf930af949076bf2829c489f69ee2ea001178b 100644 (file)
@@ -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
        }
 }