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 3 years ago
parent
commit
ba07c26761
No account linked to committer's email address

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

34
 // command sending macro's with debugging capability
34
 // command sending macro's with debugging capability
35
 #define SEND_PGM(x)                                 send_P(PSTR(x))
35
 #define SEND_PGM(x)                                 send_P(PSTR(x))
36
 #define SENDLINE_PGM(x)                             sendLine_P(PSTR(x))
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
 #define SEND(x)                                     send(x)
38
 #define SEND(x)                                     send(x)
39
 #define SENDLINE(x)                                 sendLine(x)
39
 #define SENDLINE(x)                                 sendLine(x)
40
 #if ENABLED(ANYCUBIC_LCD_DEBUG)
40
 #if ENABLED(ANYCUBIC_LCD_DEBUG)
496
         SEND_PGM("/");
496
         SEND_PGM("/");
497
         SENDLINE(currentFileList.shortFilename());
497
         SENDLINE(currentFileList.shortFilename());
498
         SEND_PGM("/");
498
         SEND_PGM("/");
499
-        SENDLINE(currentFileList.longFilename());
499
+        SENDLINE(currentFileList.filename());
500
 
500
 
501
       }
501
       }
502
       else {
502
       else {
503
         SENDLINE(currentFileList.shortFilename());
503
         SENDLINE(currentFileList.shortFilename());
504
-        SENDLINE(currentFileList.longFilename());
504
+        SENDLINE(currentFileList.filename());
505
       }
505
       }
506
     }
506
     }
507
   }
507
   }

Loading…
Cancel
Save