|
|
@ -466,23 +466,23 @@ void check_axes_activity()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#if FAN_PIN > -1
|
|
|
|
#if FAN_PIN > -1
|
|
|
|
#ifndef FAN_SOFT_PWM
|
|
|
|
#ifndef FAN_SOFT_PWM
|
|
|
|
if (FAN_KICKSTART_TIME) {
|
|
|
|
#ifdef FAN_KICKSTART_TIME
|
|
|
|
static unsigned long FanKickEnd;
|
|
|
|
static unsigned long fan_kick_end;
|
|
|
|
if (tail_fan_speed) {
|
|
|
|
if (tail_fan_speed) {
|
|
|
|
if (FanKickEnd == 0) {
|
|
|
|
if (fan_kick_end == 0) {
|
|
|
|
// Just starting up fan - run at full power.
|
|
|
|
// Just starting up fan - run at full power.
|
|
|
|
FanKickEnd = millis() + FAN_KICKSTART_TIME;
|
|
|
|
fan_kick_end = millis() + FAN_KICKSTART_TIME;
|
|
|
|
tail_fan_speed = 255;
|
|
|
|
tail_fan_speed = 255;
|
|
|
|
} else if (FanKickEnd > millis())
|
|
|
|
} else if (fan_kick_end > millis())
|
|
|
|
// Fan still spinning up.
|
|
|
|
// Fan still spinning up.
|
|
|
|
tail_fan_speed = 255;
|
|
|
|
tail_fan_speed = 255;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
FanKickEnd = 0;
|
|
|
|
fan_kick_end = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif//FAN_KICKSTART_TIME
|
|
|
|
analogWrite(FAN_PIN,tail_fan_speed);
|
|
|
|
analogWrite(FAN_PIN,tail_fan_speed);
|
|
|
|
#endif
|
|
|
|
#endif//!FAN_SOFT_PWM
|
|
|
|
#endif
|
|
|
|
#endif//FAN_PIN > -1
|
|
|
|
#ifdef AUTOTEMP
|
|
|
|
#ifdef AUTOTEMP
|
|
|
|
getHighESpeed();
|
|
|
|
getHighESpeed();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|