Skip to content

Commit

Permalink
Fix CHAMBER_MAXTEMP security margin (#16600)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician authored and thinkyhead committed Jan 20, 2020
1 parent d9cdb4a commit ef8f829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void menu_temperature() {
// 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

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/module/temperature.h
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ class Temperature {
static void setTargetChamber(const int16_t celsius) {
temp_chamber.target =
#ifdef CHAMBER_MAXTEMP
_MIN(celsius, CHAMBER_MAXTEMP)
_MIN(celsius, CHAMBER_MAXTEMP - 10)
#else
celsius
#endif
Expand Down

0 comments on commit ef8f829

Please sign in to comment.