Browse Source

Small reduction in error code size

pull/1/head
Scott Lahteine 8 years ago
parent
commit
a6dafb058e
  1. 4
      Marlin/Marlin_main.cpp
  2. 4
      Marlin/temperature.cpp

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

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

Loading…
Cancel
Save