aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/avr/serial.c')
-rw-r--r--src/avr/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/avr/serial.c b/src/avr/serial.c
index 61ad1c1e..10b95992 100644
--- a/src/avr/serial.c
+++ b/src/avr/serial.c
@@ -121,7 +121,7 @@ console_pop_input(uint8_t len)
void
console_task(void)
{
- uint8_t pop_count, rpos = readl(&receive_pos);
+ uint8_t pop_count, rpos = readb(&receive_pos);
int8_t ret = command_find_block(receive_buf, rpos, &pop_count);
if (ret > 0)
command_dispatch(receive_buf, pop_count);