From ae9bc93cccf8ed1f33f45555ceb7a26fcc8e4990 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 12 Jul 2017 23:01:46 -0400 Subject: [PATCH] avr: Fix readl() typo in serial.c The code should have used a readb() call instead of readl(). Signed-off-by: Kevin O'Connor --- src/avr/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);