From facf818bfa54d1fc553cf06a0f22012ea033ace0 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 29 Aug 2012 10:55:34 -0400 Subject: add some menu variables as globals, to remove FIXMEs --- lcd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lcd.c') diff --git a/lcd.c b/lcd.c index de02525..d90bb69 100644 --- a/lcd.c +++ b/lcd.c @@ -1,5 +1,6 @@ #include "i2c.h" #include "lcd.h" +#include "globals.h" #include #include #include @@ -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); -- cgit