[X7D] LCD Reset is always needed
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ void lcdInit()
|
|||||||
{
|
{
|
||||||
lcdHardwareInit();
|
lcdHardwareInit();
|
||||||
|
|
||||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
if (IS_LCD_RESET_NEEDED()) {
|
||||||
lcdReset();
|
lcdReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user