Browse Source

Minor change to fan kick

pull/1/head
Scott Lahteine 10 years ago
parent
commit
513077c317
  1. 5
      Marlin/planner.cpp

5
Marlin/planner.cpp

@ -429,11 +429,12 @@ void check_axes_activity() {
#ifdef FAN_KICKSTART_TIME
static millis_t fan_kick_end;
if (tail_fan_speed) {
millis_t ms = millis();
if (fan_kick_end == 0) {
// Just starting up fan - run at full power.
fan_kick_end = millis() + FAN_KICKSTART_TIME;
fan_kick_end = ms + FAN_KICKSTART_TIME;
tail_fan_speed = 255;
} else if (fan_kick_end > millis())
} else if (fan_kick_end > ms)
// Fan still spinning up.
tail_fan_speed = 255;
} else {

Loading…
Cancel
Save