Fix Chiron TFT serial comms (#21152)

This commit is contained in:
Nick
2021-02-24 02:13:24 +00:00
committed by GitHub
parent 37e2250992
commit b276a7fd17
2 changed files with 4 additions and 4 deletions

View File

@ -292,7 +292,7 @@ namespace Anycubic {
#if ACDEBUG(AC_SOME)
serialprintPGM(str);
#endif
while (const char c = pgm_read_byte(str++)) TFTSer.print(c);
while (const char c = pgm_read_byte(str++)) TFTSer.write(c);
}
void ChironTFT::SendtoTFTLN(PGM_P str = nullptr) {
@ -305,7 +305,7 @@ namespace Anycubic {
SERIAL_EOL();
#endif
}
TFTSer.println("");
TFTSer.println();
}
bool ChironTFT::ReadTFTCommand() {
@ -840,7 +840,7 @@ namespace Anycubic {
// Ignore request if printing
//if (isPrinting()) break;
//injectCommands_P(PSTR("M500\nM420 S1\nG1 Z10 F240\nG1 X0 Y0 F6000"));
//TFTSer.println("");
//TFTSer.println();
} break;
// A33 firmware info request seet PanelInfo()