Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp
- index c06c073..2b37da8 100644
- --- a/Marlin/planner.cpp
- +++ b/Marlin/planner.cpp
- @@ -438,7 +438,10 @@ void check_axes_activity() {
- }
- else {
- #if FAN_PIN > -1
- - if (FanSpeed != 0) analogWrite(FAN_PIN,FanSpeed); // If buffer is empty use current fan speed
- + if (FanSpeed != 0){
- + WRITE(FAN_PIN, HIGH);
- + analogWrite(FAN_PIN,FanSpeed); // If buffer is empty use current fan speed
- + }
- #endif
- }
- if((DISABLE_X) && (x_active == 0)) disable_x();
- @@ -446,7 +449,10 @@ void check_axes_activity() {
- if((DISABLE_Z) && (z_active == 0)) disable_z();
- if((DISABLE_E) && (e_active == 0)) { disable_e0();disable_e1();disable_e2(); }
- #if FAN_PIN > -1
- - if((FanSpeed == 0) && (fan_speed ==0)) analogWrite(FAN_PIN, 0);
- + if((FanSpeed == 0) && (fan_speed ==0)){
- + WRITE(FAN_PIN, LOW);
- + analogWrite(FAN_PIN, 0);
- + }
- #endif
- if (FanSpeed != 0 && tail_fan_speed !=0) {
- analogWrite(FAN_PIN,tail_fan_speed);
Advertisement
Add Comment
Please, Sign In to add comment