Use PGM serial strings

This commit is contained in:
Scott Lahteine
2020-10-19 04:24:57 -05:00
parent cf0a817db1
commit ff9a27ee9f
6 changed files with 22 additions and 36 deletions

View File

@ -294,7 +294,7 @@ namespace Anycubic {
void ChironTFT::SendtoTFTLN(PGM_P str = nullptr) {
if (str != nullptr) {
#if ACDEBUG(AC_SOME)
SERIAL_ECHO("> ");
SERIAL_ECHOPGM("> ");
#endif
SendtoTFT(str);
#if ACDEBUG(AC_SOME)

View File

@ -189,12 +189,12 @@ void Touch::touch(touch_control_t *control) {
}
if (calibration_state == CALIBRATION_SUCCESS) {
SERIAL_ECHOLN("Touch screen calibration completed");
SERIAL_ECHOLNPGM("Touch screen calibration completed");
SERIAL_ECHOLNPAIR("TOUCH_CALIBRATION_X ", calibration.x);
SERIAL_ECHOLNPAIR("TOUCH_CALIBRATION_Y ", calibration.y);
SERIAL_ECHOLNPAIR("TOUCH_OFFSET_X ", calibration.offset_x);
SERIAL_ECHOLNPAIR("TOUCH_OFFSET_Y ", calibration.offset_y);
SERIAL_ECHO("TOUCH_ORIENTATION "); if (calibration.orientation == TOUCH_LANDSCAPE) SERIAL_ECHOLN("TOUCH_LANDSCAPE"); else SERIAL_ECHOLN("TOUCH_PORTRAIT");
SERIAL_ECHOPGM("TOUCH_ORIENTATION "); if (calibration.orientation == TOUCH_LANDSCAPE) SERIAL_ECHOLNPGM("TOUCH_LANDSCAPE"); else SERIAL_ECHOLNPGM("TOUCH_PORTRAIT");
}
break;
default: break;