Small reduction in error code size

This commit is contained in:
Scott Lahteine 2017-05-08 13:58:09 -05:00
parent a1e04942a2
commit a6dafb058e
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}