Skip to content

Commit

Permalink
Fix Anycubic i3 Mega target temperature display (MarlinFirmware#19572)
Browse files Browse the repository at this point in the history
Also includes a workaround for missing (probably un-fetched) long name in file listing
  • Loading branch information
stef-ladefense authored and thinkyhead committed Oct 16, 2020
1 parent cc123bc commit 5a02959
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// command sending macro's with debugging capability
#define SEND_PGM(x) send_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 SENDLINE(x) sendLine(x)
#if ENABLED(ANYCUBIC_LCD_DEBUG)
Expand Down Expand Up @@ -496,12 +496,12 @@ void AnycubicTFTClass::RenderCurrentFolder(uint16_t selectedNumber) {
SEND_PGM("/");
SENDLINE(currentFileList.shortFilename());
SEND_PGM("/");
SENDLINE(currentFileList.longFilename());
SENDLINE(currentFileList.filename());

}
else {
SENDLINE(currentFileList.shortFilename());
SENDLINE(currentFileList.longFilename());
SENDLINE(currentFileList.filename());
}
}
}
Expand Down

0 comments on commit 5a02959

Please sign in to comment.