From: Keith Packard Date: Fri, 23 Mar 2012 07:04:21 +0000 (-0700) Subject: Flush LCD changes each time the text is updated X-Git-Tag: 1.0.9.4~12 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=9b5e98a3407b369803109bfc1409e4f8b6e848ba Flush LCD changes each time the text is updated Rather than requiring the caller to do it. Signed-off-by: Keith Packard --- diff --git a/src/stm/ao_lcd_font.c b/src/stm/ao_lcd_font.c index 2bd787ed..0d7d87c1 100644 --- a/src/stm/ao_lcd_font.c +++ b/src/stm/ao_lcd_font.c @@ -98,6 +98,7 @@ ao_lcd_font_string(char *s) { } while (pos < 6) ao_lcd_font_char(pos++, ' ', 0); + stm_lcd.sr = (1 << STM_LCD_SR_UDR); } static void @@ -112,7 +113,6 @@ ao_lcd_font_text(void) } string[c++] = '\0'; ao_lcd_font_string(string); - stm_lcd.sr = (1 << STM_LCD_SR_UDR); } const struct ao_cmds ao_lcd_font_cmds[] = {