Skip to content

Commit

Permalink
enabled based on dynamic state
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 18, 2022
1 parent acda6dc commit d1fafee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion Marlin/src/lcd/menu/menu_advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ void menu_backlash();
// Autotemp, Min, Max, Fact
//
#if BOTH(AUTOTEMP, HAS_TEMP_HOTEND)
EDIT_ITEM(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
EDIT_ITEM(int3, MSG_MIN, &planner.autotemp_min, 0, thermalManager.hotend_max_target(0));
EDIT_ITEM(int3, MSG_MAX, &planner.autotemp_max, 0, thermalManager.hotend_max_target(0));
EDIT_ITEM(float42_52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ skew_factor_t Planner::skew_factor; // Initialized by settings.load()
celsius_t Planner::autotemp_min = AUTOTEMP_MIN,
Planner::autotemp_max = AUTOTEMP_MAX;
float Planner::autotemp_factor = AUTOTEMP_FACTOR;
bool Planner::autotemp_enabled = AUTOTEMP_ENABLED;
bool Planner::autotemp_enabled = false;
#endif

// private:
Expand Down
4 changes: 0 additions & 4 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ typedef struct SettingsDataStruct {
#if ENABLED(AUTOTEMP)
celsius_t planner_autotemp_max, planner_autotemp_min;
float planner_autotemp_factor;
bool planner_autotemp_enabled;
#endif

//
Expand Down Expand Up @@ -870,7 +869,6 @@ void MarlinSettings::postprocess() {
EEPROM_WRITE(planner.autotemp_max);
EEPROM_WRITE(planner.autotemp_min);
EEPROM_WRITE(planner.autotemp_factor);
EEPROM_WRITE(planner.autotemp_enabled);
#endif

//
Expand Down Expand Up @@ -1828,7 +1826,6 @@ void MarlinSettings::postprocess() {
EEPROM_READ(planner.autotemp_max);
EEPROM_READ(planner.autotemp_min);
EEPROM_READ(planner.autotemp_factor);
EEPROM_READ(planner.autotemp_enabled);
#endif

//
Expand Down Expand Up @@ -3034,7 +3031,6 @@ void MarlinSettings::reset() {
planner.autotemp_max = AUTOTEMP_MAX;
planner.autotemp_min = AUTOTEMP_MIN;
planner.autotemp_factor = AUTOTEMP_FACTOR;
planner.autotemp_enabled = AUTOTEMP_ENABLED;
#endif

//
Expand Down

0 comments on commit d1fafee

Please sign in to comment.