Commit a5a7e4e8 authored by Simone Primarosa's avatar Simone Primarosa

Update 4.2.0 dev

parent b3b1118d
...@@ -1699,22 +1699,26 @@ int lcd_strlen_P(const char *s) { ...@@ -1699,22 +1699,26 @@ int lcd_strlen_P(const char *s) {
#if ENABLED(SDSUPPORT) && ENABLED(SD_SETTINGS) #if ENABLED(SDSUPPORT) && ENABLED(SD_SETTINGS)
void set_sd_dot() { void set_sd_dot() {
u8g.firstPage(); #if ENABLED(DOGLCD)
do { u8g.firstPage();
u8g.setColorIndex(1); do {
u8g.drawPixel(0, 0); // draw sd dot u8g.setColorIndex(1);
u8g.setColorIndex(1); // black on white u8g.drawPixel(0, 0); // draw sd dot
(*currentMenu)(); u8g.setColorIndex(1); // black on white
} while( u8g.nextPage() ); (*currentMenu)();
} while( u8g.nextPage() );
#endif
} }
void unset_sd_dot() { void unset_sd_dot() {
u8g.firstPage(); #if ENABLED(DOGLCD)
do { u8g.firstPage();
u8g.setColorIndex(0); do {
u8g.drawPixel(0, 0); // draw sd dot u8g.setColorIndex(0);
u8g.setColorIndex(1); // black on white u8g.drawPixel(0, 0); // draw sd dot
(*currentMenu)(); u8g.setColorIndex(1); // black on white
} while( u8g.nextPage() ); (*currentMenu)();
} while( u8g.nextPage() );
#endif
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment