diff options
-rw-r--r-- | firmware/drivers/lcd-charcell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index 5ddef99655..4d8a693e1f 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c | |||
@@ -341,7 +341,7 @@ void lcd_put_cursor(int x, int y, unsigned long cursor_ucs) | |||
341 | lcd_cursor.x = x; | 341 | lcd_cursor.x = x; |
342 | lcd_cursor.y = y; | 342 | lcd_cursor.y = y; |
343 | lcd_cursor.downcount = 0; | 343 | lcd_cursor.downcount = 0; |
344 | lcd_cursor.divider = 4; | 344 | lcd_cursor.divider = MAX((HZ/2) / scroll_ticks, 1); |
345 | } | 345 | } |
346 | 346 | ||
347 | /* Remove the cursor */ | 347 | /* Remove the cursor */ |
@@ -562,7 +562,7 @@ static void scroll_thread(void) | |||
562 | } | 562 | } |
563 | if (lcd_cursor.enabled) | 563 | if (lcd_cursor.enabled) |
564 | { | 564 | { |
565 | if (--lcd_cursor.downcount < 0) | 565 | if (--lcd_cursor.downcount <= 0) |
566 | { | 566 | { |
567 | lcd_cursor.downcount = lcd_cursor.divider; | 567 | lcd_cursor.downcount = lcd_cursor.divider; |
568 | lcd_cursor.visible = !lcd_cursor.visible; | 568 | lcd_cursor.visible = !lcd_cursor.visible; |