Fix Anycubic i3 Mega target temperature display (#19572)

Also includes a workaround for missing (probably un-fetched) long name in file listing
This commit is contained in:
Stéphane 2020-10-02 01:09:39 +02:00 committed by GitHub
parent e56295851f
commit ba07c26761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@
// command sending macro's with debugging capability // command sending macro's with debugging capability
#define SEND_PGM(x) send_P(PSTR(x)) #define SEND_PGM(x) send_P(PSTR(x))
#define SENDLINE_PGM(x) sendLine_P(PSTR(x)) #define SENDLINE_PGM(x) sendLine_P(PSTR(x))
#define SEND_PGM_VAL(x,y) (send_P(PSTR(x)), sendLine(i8tostr3rj(y))) #define SEND_PGM_VAL(x,y) (send_P(PSTR(x)), sendLine(i16tostr3rj(y)))
#define SEND(x) send(x) #define SEND(x) send(x)
#define SENDLINE(x) sendLine(x) #define SENDLINE(x) sendLine(x)
#if ENABLED(ANYCUBIC_LCD_DEBUG) #if ENABLED(ANYCUBIC_LCD_DEBUG)
@ -496,12 +496,12 @@ void AnycubicTFTClass::RenderCurrentFolder(uint16_t selectedNumber) {
SEND_PGM("/"); SEND_PGM("/");
SENDLINE(currentFileList.shortFilename()); SENDLINE(currentFileList.shortFilename());
SEND_PGM("/"); SEND_PGM("/");
SENDLINE(currentFileList.longFilename()); SENDLINE(currentFileList.filename());
} }
else { else {
SENDLINE(currentFileList.shortFilename()); SENDLINE(currentFileList.shortFilename());
SENDLINE(currentFileList.longFilename()); SENDLINE(currentFileList.filename());
} }
} }
} }