Fix CHAMBER_MAXTEMP security margin (#16600)

This commit is contained in:
Giuliano Zaro 2020-01-20 07:44:51 +01:00 committed by Scott Lahteine
parent d9cdb4ae19
commit ef8f829513
2 changed files with 2 additions and 2 deletions

View File

@ -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
// //

View File

@ -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