Przeglądaj źródła

Revert "Testloop cleanup"

This reverts commit 6361404b91.
AnHardt 9 lat temu
rodzic
commit
418d22d7b3
2 zmienionych plików z 8 dodań i 5 usunięć
  1. 2
    2
      Marlin/dogm_lcd_implementation.h
  2. 6
    3
      Marlin/ultralcd.cpp

+ 2
- 2
Marlin/dogm_lcd_implementation.h Wyświetl plik

@@ -318,9 +318,9 @@ static void lcd_implementation_status_screen() {
318 318
   lcd_setFont(FONT_STATUSMENU);
319 319
 
320 320
   #ifdef USE_SMALL_INFOFONT
321
-    u8g.drawBox(0,30,128,10);
321
+    u8g.drawBox(0,30,127,10);
322 322
   #else
323
-    u8g.drawBox(0,30,128,9);
323
+    u8g.drawBox(0,30,127,9);
324 324
   #endif
325 325
   u8g.setColorIndex(0); // white on black
326 326
   u8g.setPrintPos(2,XYZ_BASELINE);

+ 6
- 3
Marlin/ultralcd.cpp Wyświetl plik

@@ -1299,6 +1299,8 @@ void lcd_update() {
1299 1299
     }
1300 1300
   #endif//CARDINSERTED
1301 1301
 
1302
+  static uint8_t dotcounter = 63;
1303
+  
1302 1304
   uint32_t ms = millis();
1303 1305
   if (ms > lcd_next_update_millis) {
1304 1306
 
@@ -1364,11 +1366,12 @@ void lcd_update() {
1364 1366
       (*currentMenu)();
1365 1367
       if (lcdDrawUpdate) {
1366 1368
         do {
1369
+          if (!dotcounter) dotcounter = 63;
1367 1370
           lcd_setFont(FONT_MENU);
1368 1371
           u8g.setPrintPos(125, 0);
1369
-          if (blink % 2) u8g.setColorIndex(1); else u8g.setColorIndex(0); // Set color for the alive dot
1370
-          u8g.drawPixel(127, 63); // draw alive dot
1371
-          u8g.setColorIndex(1); // black on white
1372
+  //        if (blink % 2) u8g.setColorIndex(1); else u8g.setColorIndex(0); // Set color for the alive dot
1373
+          u8g.drawPixel(127, dotcounter--); // draw alive dot
1374
+  //        u8g.setColorIndex(1); // black on white
1372 1375
           (*currentMenu)();
1373 1376
         } while( u8g.nextPage() );
1374 1377
       }

Ładowanie…
Anuluj
Zapisz