reinitialize the lcd, if the SD card is inserted or removed. It seems that LCDs can confused by electrical discharges from time to time.
Since a removal or insert of the sd card takes a long time in firmware, just reinitializing the lcd does not hurt. actually, it solves a problem with the UltiControlle
This commit is contained in:
		| @@ -95,6 +95,7 @@ FORCE_INLINE void clear() | |||||||
| void lcd_init() | void lcd_init() | ||||||
| { | { | ||||||
|   //beep(); |   //beep(); | ||||||
|  |    | ||||||
|   byte Degree[8] = |   byte Degree[8] = | ||||||
|   { |   { | ||||||
|     B01100, |     B01100, | ||||||
| @@ -2080,6 +2081,7 @@ void MainMenu::update() | |||||||
|     { |     { | ||||||
|       force_lcd_update=true; |       force_lcd_update=true; | ||||||
|       oldcardstatus=CARDINSERTED; |       oldcardstatus=CARDINSERTED; | ||||||
|  |       lcd_init(); // to maybe revive the lcd if static electricty killed it. | ||||||
|       //Serial.println("echo: SD CHANGE"); |       //Serial.println("echo: SD CHANGE"); | ||||||
|       if(CARDINSERTED) |       if(CARDINSERTED) | ||||||
|       { |       { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user