chiark
/
gitweb
/
~ianmdlvl
/
marlin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
464b755
)
reinitialize the lcd, if the SD card is inserted or removed. It seems that LCDs can...
author
Bernhard
<bkubicek@x201.(none)>
Sun, 22 Apr 2012 19:12:17 +0000
(21:12 +0200)
committer
Bernhard
<bkubicek@x201.(none)>
Sun, 22 Apr 2012 19:12:17 +0000
(21:12 +0200)
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
Marlin/ultralcd.pde
patch
|
blob
|
history
diff --git
a/Marlin/ultralcd.pde
b/Marlin/ultralcd.pde
index e3888903f8e4b16c6611a7fd12756062daa6bece..f2a2b59f49958c264c206a35d8e86bc50615f6e9 100644
(file)
--- a/
Marlin/ultralcd.pde
+++ b/
Marlin/ultralcd.pde
@@
-95,6
+95,7
@@
FORCE_INLINE void clear()
void lcd_init()
{
//beep();
+
byte Degree[8] =
{
B01100,
@@
-2080,6
+2081,7
@@
void MainMenu::update()
{
force_lcd_update=true;
oldcardstatus=CARDINSERTED;
+ lcd_init(); // to maybe revive the lcd if static electricty killed it.
//Serial.println("echo: SD CHANGE");
if(CARDINSERTED)
{