Browse Source

Fix CHAMBER_MAXTEMP security margin (#16600)

pull/1/head
Giuliano Zaro 5 years ago
committed by Scott Lahteine
parent
commit
ef8f829513
  1. 2
      Marlin/src/lcd/menu/menu_temperature.cpp
  2. 2
      Marlin/src/module/temperature.h

2
Marlin/src/lcd/menu/menu_temperature.cpp

@ -191,7 +191,7 @@ void menu_temperature() {
// Chamber: // Chamber:
// //
#if HAS_HEATED_CHAMBER #if HAS_HEATED_CHAMBER
EDIT_ITEM_FAST(int3, MSG_CHAMBER, &thermalManager.temp_chamber.target, 0, CHAMBER_MAXTEMP - 5, thermalManager.start_watching_chamber); EDIT_ITEM_FAST(int3, MSG_CHAMBER, &thermalManager.temp_chamber.target, 0, CHAMBER_MAXTEMP - 10, thermalManager.start_watching_chamber);
#endif #endif
// //

2
Marlin/src/module/temperature.h

@ -711,7 +711,7 @@ class Temperature {
static void setTargetChamber(const int16_t celsius) { static void setTargetChamber(const int16_t celsius) {
temp_chamber.target = temp_chamber.target =
#ifdef CHAMBER_MAXTEMP #ifdef CHAMBER_MAXTEMP
_MIN(celsius, CHAMBER_MAXTEMP) _MIN(celsius, CHAMBER_MAXTEMP - 10)
#else #else
celsius celsius
#endif #endif

Loading…
Cancel
Save