Skip to content

Commit

Permalink
Fix compile with chamber enabled (MarlinFirmware#15862)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and thinkyhead committed Nov 10, 2019
1 parent 534f2d6 commit 7b29c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/temperature/M141_M191.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ void GcodeSuite::M191() {
if (no_wait_for_cooling || parser.seenval('R')) {
thermalManager.setTargetChamber(parser.value_celsius());
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
if (parser.value_celsius() > BED_MINTEMP)
if (parser.value_celsius() > CHAMBER_MINTEMP)
startOrResumeJob();
#endif
}
else return;

const bool is_heating = thermalManager.isHeatingChamber();
if (is_heating || !no_wait_for_cooling) {
lcd_setstatusPGM(is_heating ? GET_TEXT(MSG_CHAMBER_HEATING) : GET_TEXT(MSG_CHAMBER_COOLING));
ui.set_status_P(is_heating ? GET_TEXT(MSG_CHAMBER_HEATING) : GET_TEXT(MSG_CHAMBER_COOLING));
thermalManager.wait_for_chamber(false);
}
}
Expand Down

0 comments on commit 7b29c60

Please sign in to comment.