summaryrefslogtreecommitdiff
path: root/n/avr/rs232/rs232.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/rs232/rs232.c')
-rw-r--r--n/avr/rs232/rs232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/n/avr/rs232/rs232.c b/n/avr/rs232/rs232.c
index 469ff17..bf1c83b 100644
--- a/n/avr/rs232/rs232.c
+++ b/n/avr/rs232/rs232.c
@@ -212,7 +212,7 @@ uint8_t
rs232_poll (void)
{
#if RECV_MODE == POLLING
- return UCSRA & RXC;
+ return UCSRA & _BV (RXC);
#elif RECV_MODE == RING
return (rs232_recv_head - rs232_recv_tail) & RECV_BUFFER_MASK;
#endif