Procházet zdrojové kódy

Fix Anycubic i3 Mega target temperature display (#19572)

Also includes a workaround for missing (probably un-fetched) long name in file listing
Stéphane před 3 roky
rodič
revize
5a02959d18

+ 3
- 3
Marlin/src/lcd/extui/lib/anycubic_i3mega/anycubic_i3mega_lcd.cpp Zobrazit soubor

@@ -34,7 +34,7 @@
34 34
 // command sending macro's with debugging capability
35 35
 #define SEND_PGM(x)                                 send_P(PSTR(x))
36 36
 #define SENDLINE_PGM(x)                             sendLine_P(PSTR(x))
37
-#define SEND_PGM_VAL(x,y)                           (send_P(PSTR(x)), sendLine(i8tostr3rj(y)))
37
+#define SEND_PGM_VAL(x,y)                           (send_P(PSTR(x)), sendLine(i16tostr3rj(y)))
38 38
 #define SEND(x)                                     send(x)
39 39
 #define SENDLINE(x)                                 sendLine(x)
40 40
 #if ENABLED(ANYCUBIC_LCD_DEBUG)
@@ -496,12 +496,12 @@ void AnycubicTFTClass::RenderCurrentFolder(uint16_t selectedNumber) {
496 496
         SEND_PGM("/");
497 497
         SENDLINE(currentFileList.shortFilename());
498 498
         SEND_PGM("/");
499
-        SENDLINE(currentFileList.longFilename());
499
+        SENDLINE(currentFileList.filename());
500 500
 
501 501
       }
502 502
       else {
503 503
         SENDLINE(currentFileList.shortFilename());
504
-        SENDLINE(currentFileList.longFilename());
504
+        SENDLINE(currentFileList.filename());
505 505
       }
506 506
     }
507 507
   }

Loading…
Zrušit
Uložit