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 8c0da553..0b5fea1f 100644
--- a/src/avr/serial.c
+++ b/src/avr/serial.c
@@ -115,7 +115,7 @@ char *
console_get_output(uint8_t len)
{
uint8_t tpos = readb(&transmit_pos), tmax = readb(&transmit_max);
- if (tpos == tmax) {
+ if (tpos >= tmax) {
tpos = tmax = 0;
writeb(&transmit_max, 0);
writeb(&transmit_pos, 0);