Fix CHAMBER_MAXTEMP security margin (#16600)
This commit is contained in:
parent
d9cdb4ae19
commit
ef8f829513
@ -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
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -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…
Reference in New Issue
Block a user