diff options
Diffstat (limited to 'lcd.c')
-rw-r--r-- | lcd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,6 @@ #include "i2c.h" #include "lcd.h" +#include "globals.h" #include <glib.h> #include <string.h> #include <stdlib.h> @@ -9,8 +10,6 @@ #define LCD_CG_RAM 64 /* custom character RAM, in the LCD ICs */ #define LCD_chars_total 160 -#define LCD_cols 40 -#define LCD_rows 4 /* 4x40 LCD */ char LCD_Data[LCD_rows][LCD_cols]; /* shadow copy of LCD display in local RAM, to minimize slow I2C writes */ @@ -281,13 +280,15 @@ void LCD_initialize(void) } -void LCD_display_extended_message(char *response, gboolean show_change_message) +void LCD_display_extended_message(char *response, gboolean show_change_message, gboolean is_error_screen) { char *row0 = NULL; char *row1 = NULL; char *row2 = NULL; -// Error_Screen=1; //FIXME - implement menu system + if (is_error_screen) { + globals.MenuStatus.Error_Screen = is_error_screen; + } break_up_string (response, LCD_cols, &row0, &row1, &row2); |