Merge pull request #6587 from zlowred/bugfix-1.1.x

Fixed USE_CONTROLLER_FAN #define usage
master
Scott Lahteine 7 years ago committed by GitHub
commit 0cc4b08b93

@ -11479,7 +11479,7 @@ void prepare_move_to_destination() {
#endif // BEZIER_CURVE_SUPPORT
#if USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
void controllerFan() {
static millis_t lastMotorOn = 0, // Last time a motor was turned on
@ -11933,7 +11933,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
}
#endif
#if USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
controllerFan(); // Check if fan should be turned on to cool stepper drivers down
#endif
@ -12203,7 +12203,7 @@ void setup() {
endstops.enable_z_probe(false);
#endif
#if USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
SET_OUTPUT(CONTROLLER_FAN_PIN); //Set pin used for driver cooling fan
#endif

@ -771,7 +771,7 @@ static_assert(1 >= 0
#error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN."
#endif
#if USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
#if !HAS_CONTROLLER_FAN
#error "USE_CONTROLLER_FAN requires a CONTROLLER_FAN_PIN. Define in Configuration_adv.h."
#elif E0_AUTO_FAN_PIN == CONTROLLER_FAN_PIN

Loading…
Cancel
Save