Skip to content

Commit

Permalink
keep adaptive_fan_slowing private
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 31, 2023
1 parent 0453d22 commit 33c8835
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Marlin/src/module/temperature.h
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,6 @@ class Temperature {

#if ENABLED(ADAPTIVE_FAN_SLOWING)
static uint8_t fan_speed_scaler[FAN_COUNT];
#if ENABLED(TEMP_TUNING_MAINTAIN_FAN)
static bool adaptive_fan_slowing;
#else
static constexpr bool adaptive_fan_slowing = true;
#endif
#endif

static uint8_t scaledFanSpeed(const uint8_t fan, const uint8_t fs) {
Expand Down Expand Up @@ -1178,6 +1173,12 @@ class Temperature {

static void PID_autotune(const celsius_t target, const heater_id_t heater_id, const int8_t ncycles, const bool set_result=false);

#if ENABLED(TEMP_TUNING_MAINTAIN_FAN)
static bool adaptive_fan_slowing;
#elif ENABLED(ADAPTIVE_FAN_SLOWING)
static constexpr bool adaptive_fan_slowing = true;
#endif

// Update the temp manager when PID values change
#if ENABLED(PIDTEMP)
static void updatePID() { HOTEND_LOOP() temp_hotend[e].pid.reset(); }
Expand Down

0 comments on commit 33c8835

Please sign in to comment.