[X7D] LCD Reset is always needed

This commit is contained in:
Bertrand Songis
2016-08-26 11:36:06 +02:00
parent 204b1b9627
commit b8edea5c05
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -504,10 +504,12 @@ void ledBlue(void);
#define LCD_W 128 #define LCD_W 128
#define LCD_H 64 #define LCD_H 64
#define LCD_DEPTH 1 #define LCD_DEPTH 1
#define IS_LCD_RESET_NEEDED() true
#else #else
#define LCD_W 212 #define LCD_W 212
#define LCD_H 64 #define LCD_H 64
#define LCD_DEPTH 4 #define LCD_DEPTH 4
#define IS_LCD_RESET_NEEDED() (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE())
#endif #endif
void lcdInit(void); void lcdInit(void);
void lcdInitFinish(void); void lcdInitFinish(void);
+1 -1
View File
@@ -279,7 +279,7 @@ void lcdInit()
{ {
lcdHardwareInit(); lcdHardwareInit();
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) { if (IS_LCD_RESET_NEEDED()) {
lcdReset(); lcdReset();
} }
} }