Fix compile issue with USE_CONTROLLER_FAN (#9665)
This commit is contained in:
parent
2ec90d2162
commit
15204bd5e9
@ -440,7 +440,7 @@ void report_current_position();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_CONTROLLERFAN
|
||||
#if ENABLED(USE_CONTROLLER_FAN)
|
||||
extern int controllerFanSpeed;
|
||||
#endif
|
||||
|
||||
|
@ -487,7 +487,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_CONTROLLERFAN
|
||||
#if ENABLED(USE_CONTROLLER_FAN)
|
||||
int controllerFanSpeed = 0;
|
||||
#endif
|
||||
|
||||
|
@ -45,7 +45,7 @@ bool Power::is_power_needed() {
|
||||
HOTEND_LOOP() if (thermalManager.autofan_speed[e] > 0) return true;
|
||||
#endif
|
||||
|
||||
#if ENABLED(AUTO_POWER_CONTROLLERFAN) && HAS_CONTROLLER_FAN
|
||||
#if ENABLED(AUTO_POWER_CONTROLLERFAN) && HAS_CONTROLLER_FAN && ENABLED(USE_CONTROLLER_FAN)
|
||||
if (controllerFanSpeed > 0) return true;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user