From a6dafb058eba43588de40738292bc5d9da0d26ad Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 8 May 2017 13:58:09 -0500 Subject: [PATCH] Small reduction in error code size --- Marlin/Marlin_main.cpp | 4 +++- Marlin/temperature.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 3c9eabab2e..f55d62be26 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2060,7 +2060,9 @@ static void clean_up_after_endstop_or_probe_move() { void fans_pause(bool p) { if (p == fans_paused) { // If called out of order something is wrong SERIAL_ERROR_START; - serialprintPGM(fans_paused ? PSTR("Fans already paused!") : PSTR("Fans already unpaused!")); + SERIAL_ERRORPGM("Fans already "); + if (!fans_paused) SERIAL_ERRORPGM("un"); + SERIAL_ERRORLNPGM("paused!"); return; } diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index e39b1fde18..074b9ce130 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -1356,7 +1356,9 @@ void Temperature::disable_all_heaters() { void Temperature::pause(bool p) { if (p == paused) { // If called out of order something is wrong SERIAL_ERROR_START; - serialprintPGM(paused ? PSTR("Heaters already paused!") : PSTR("Heaters already unpaused!")); + SERIAL_ERRORPGM("Heaters already "); + if (!paused) SERIAL_ERRORPGM("un"); + SERIAL_ERRORLNPGM("paused!"); return; }