summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index f4deb89456..837fd5734d 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -820,10 +820,11 @@ static void scroll_thread(void)
else
s->offset++;
- if (s->offset > s->textlen) {
+ if (s->offset >= s->textlen) {
+ lcd_puts(s->startx + s->textlen - s->offset, s->starty," ");
scroll_count = scroll_speed; /* prevent wrap */
s->offset=0;
- s->xpos = s->space;
+ s->xpos = s->space-1;
}
}
sleep(HZ/scroll_speed);