Flush LCD changes each time the text is updated
authorKeith Packard <keithp@keithp.com>
Fri, 23 Mar 2012 07:04:21 +0000 (00:04 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 29 Mar 2012 04:37:04 +0000 (21:37 -0700)
Rather than requiring the caller to do it.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_lcd_font.c

index 2bd787ed6e0637d4dcaaa45cc29dc3b407f3172b..0d7d87c10b8dd38dd654abe907f3ee597daef835 100644 (file)
@@ -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[] = {