diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-29 10:55:34 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-29 10:55:34 -0400 |
commit | facf818bfa54d1fc553cf06a0f22012ea033ace0 (patch) | |
tree | 254143d4d025f5b2d37af59e95470b48ba9421c4 /lcd.c | |
parent | b127640ef5f09b10a648701c52f950f3fe569ce6 (diff) |
add some menu variables as globals, to remove FIXMEs
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); |