Skip to content

Commit abde3d4

Browse files
committed
enabled based on dynamic state
1 parent acda6dc commit abde3d4

File tree

5 files changed

+1
-9
lines changed

5 files changed

+1
-9
lines changed

Marlin/Configuration_adv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@
453453
#define AUTOTEMP_MIN 210
454454
#define AUTOTEMP_MAX 250
455455
#define AUTOTEMP_FACTOR 0.1f
456-
#define AUTOTEMP_ENABLED false
457456
// Turn on AUTOTEMP on M104/M109 by default using proportions set here
458457
//#define AUTOTEMP_PROPORTIONAL
459458
#if ENABLED(AUTOTEMP_PROPORTIONAL)

Marlin/src/inc/SanityCheck.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
15591559
#error "AUTOTEMP requires AUTOTEMP_MAX."
15601560
#elif !defined(AUTOTEMP_FACTOR)
15611561
#error "AUTOTEMP requires AUTOTEMP_FACTOR."
1562-
#elif !defined(AUTOTEMP_ENABLED)
1563-
#error "AUTOTEMP requires AUTOTEMP_ENABLED."
15641562
#elif AUTOTEMP_MAX < AUTOTEMP_MIN
15651563
#error "AUTOTEMP_MAX must be greater than or equal to AUTOTEMP_MIN."
15661564
#endif

Marlin/src/lcd/menu/menu_advanced.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ void menu_backlash();
295295
// Autotemp, Min, Max, Fact
296296
//
297297
#if BOTH(AUTOTEMP, HAS_TEMP_HOTEND)
298-
EDIT_ITEM(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
299298
EDIT_ITEM(int3, MSG_MIN, &planner.autotemp_min, 0, thermalManager.hotend_max_target(0));
300299
EDIT_ITEM(int3, MSG_MAX, &planner.autotemp_max, 0, thermalManager.hotend_max_target(0));
301300
EDIT_ITEM(float42_52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);

Marlin/src/module/planner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ skew_factor_t Planner::skew_factor; // Initialized by settings.load()
204204
celsius_t Planner::autotemp_min = AUTOTEMP_MIN,
205205
Planner::autotemp_max = AUTOTEMP_MAX;
206206
float Planner::autotemp_factor = AUTOTEMP_FACTOR;
207-
bool Planner::autotemp_enabled = AUTOTEMP_ENABLED;
207+
bool Planner::autotemp_enabled = false;
208208
#endif
209209

210210
// private:

Marlin/src/module/settings.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ typedef struct SettingsDataStruct {
249249
#if ENABLED(AUTOTEMP)
250250
celsius_t planner_autotemp_max, planner_autotemp_min;
251251
float planner_autotemp_factor;
252-
bool planner_autotemp_enabled;
253252
#endif
254253

255254
//
@@ -870,7 +869,6 @@ void MarlinSettings::postprocess() {
870869
EEPROM_WRITE(planner.autotemp_max);
871870
EEPROM_WRITE(planner.autotemp_min);
872871
EEPROM_WRITE(planner.autotemp_factor);
873-
EEPROM_WRITE(planner.autotemp_enabled);
874872
#endif
875873

876874
//
@@ -1828,7 +1826,6 @@ void MarlinSettings::postprocess() {
18281826
EEPROM_READ(planner.autotemp_max);
18291827
EEPROM_READ(planner.autotemp_min);
18301828
EEPROM_READ(planner.autotemp_factor);
1831-
EEPROM_READ(planner.autotemp_enabled);
18321829
#endif
18331830

18341831
//
@@ -3034,7 +3031,6 @@ void MarlinSettings::reset() {
30343031
planner.autotemp_max = AUTOTEMP_MAX;
30353032
planner.autotemp_min = AUTOTEMP_MIN;
30363033
planner.autotemp_factor = AUTOTEMP_FACTOR;
3037-
planner.autotemp_enabled = AUTOTEMP_ENABLED;
30383034
#endif
30393035

30403036
//

0 commit comments

Comments
 (0)