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

Loading…
Cancel
Save