Browse Source

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
Bernhard 13 years ago
parent
commit
e4d2138dbd
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/ultralcd.pde

+ 2
- 0
Marlin/ultralcd.pde View File

@@ -95,6 +95,7 @@ FORCE_INLINE void clear()
95 95
 void lcd_init()
96 96
 {
97 97
   //beep();
98
+  
98 99
   byte Degree[8] =
99 100
   {
100 101
     B01100,
@@ -2080,6 +2081,7 @@ void MainMenu::update()
2080 2081
     {
2081 2082
       force_lcd_update=true;
2082 2083
       oldcardstatus=CARDINSERTED;
2084
+      lcd_init(); // to maybe revive the lcd if static electricty killed it.
2083 2085
       //Serial.println("echo: SD CHANGE");
2084 2086
       if(CARDINSERTED)
2085 2087
       {

Loading…
Cancel
Save