From 82a3fcc66e1ce2475ded065208376edd2842e9cf Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 31 Jan 2023 00:20:10 -0600 Subject: [PATCH] keep adaptive_fan_slowing private --- Marlin/src/module/temperature.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Marlin/src/module/temperature.h b/Marlin/src/module/temperature.h index 3ae5fcfdacec1..9ac5db44edfa1 100644 --- a/Marlin/src/module/temperature.h +++ b/Marlin/src/module/temperature.h @@ -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) { @@ -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(NO_FAN_SLOWING_IN_PID_TUNING) + 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(); }