diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 18bf9d54ba..7d53021206 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -46,7 +46,6 @@ | |||
46 | # define LCD_PRAM ((char)0x80) /* Patterns */ | 46 | # define LCD_PRAM ((char)0x80) /* Patterns */ |
47 | # define LCD_IRAM ((char)0xE0) /* Icons */ | 47 | # define LCD_IRAM ((char)0xE0) /* Icons */ |
48 | #endif | 48 | #endif |
49 | #define LCD_ASCII(c) (lcd_ascii[(c)&255]) | ||
50 | #define LCD_CURSOR(x,y) ((char)(LCD_CRAM+((y)*16+(x)))) | 49 | #define LCD_CURSOR(x,y) ((char)(LCD_CRAM+((y)*16+(x)))) |
51 | #define LCD_ICON(i) ((char)(LCD_IRAM+i)) | 50 | #define LCD_ICON(i) ((char)(LCD_IRAM+i)) |
52 | 51 | ||
@@ -331,14 +330,14 @@ void lcd_clear_display(void) | |||
331 | int i; | 330 | int i; |
332 | lcd_write(true,LCD_CURSOR(0,0)); | 331 | lcd_write(true,LCD_CURSOR(0,0)); |
333 | for (i=0;i<32;i++) | 332 | for (i=0;i<32;i++) |
334 | lcd_write(false,0); | 333 | lcd_write(false,lcd_ascii[' ']); |
335 | } | 334 | } |
336 | 335 | ||
337 | void lcd_puts(int x, int y, char *string) | 336 | void lcd_puts(int x, int y, char *string) |
338 | { | 337 | { |
339 | lcd_write(true,LCD_CURSOR(x,y)); | 338 | lcd_write(true,LCD_CURSOR(x,y)); |
340 | while (*string) | 339 | while (*string && x++<11) |
341 | lcd_write(false,LCD_ASCII(*string++)); | 340 | lcd_write(false,lcd_ascii[*string++]); |
342 | } | 341 | } |
343 | 342 | ||
344 | void lcd_define_pattern (int which,char *pattern,int length) | 343 | void lcd_define_pattern (int which,char *pattern,int length) |