Browse Source

Fix Anycubic i3 Mega target temperature display (#19572)

Also includes a workaround for missing (probably un-fetched) long name in file listing
Stéphane 4 years ago
parent
commit
5a02959d18
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/lcd/extui/lib/anycubic_i3mega/anycubic_i3mega_lcd.cpp

+ 3
- 3
Marlin/src/lcd/extui/lib/anycubic_i3mega/anycubic_i3mega_lcd.cpp View File

@@ -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…
Cancel
Save