Browse Source

Fix compile with chamber enabled (#15862)

pull/1/head
ellensp 5 years ago
committed by Scott Lahteine
parent
commit
7b29c60c46
  1. 4
      Marlin/src/gcode/temperature/M141_M191.cpp

4
Marlin/src/gcode/temperature/M141_M191.cpp

@ -59,7 +59,7 @@ 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
}
@ -67,7 +67,7 @@ void GcodeSuite::M191() {
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);
}
}

Loading…
Cancel
Save