Fix compile issue with USE_CONTROLLER_FAN (#9665)

This commit is contained in:
Bob-the-Kuhn 2018-02-16 02:02:20 -06:00 committed by Scott Lahteine
parent 2ec90d2162
commit 15204bd5e9
3 changed files with 3 additions and 3 deletions

View File

@ -440,7 +440,7 @@ void report_current_position();
#endif
#endif
#if HAS_CONTROLLERFAN
#if ENABLED(USE_CONTROLLER_FAN)
extern int controllerFanSpeed;
#endif

View File

@ -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

View File

@ -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