Skip to content

Commit

Permalink
removed FAN_KICKSTART_TIME around init code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nibbels committed Feb 16, 2019
1 parent d16b297 commit 664d1cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Binary file modified .vs/Repetier/v14/.suo
Binary file not shown.
2 changes: 0 additions & 2 deletions Repetier/Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,12 @@ void Commands::setFanSpeed(uint8_t speed, bool recalc)
*/
}

#if FAN_KICKSTART_TIME
//if specified calculate a kickstart time when the fan speed is commanded to rise
//use fanSpeed (not "speed") to compare with PART_FAN_KICKSTART_THRESHOLD so we dont have to recalculate the threshold according min-max.
if (fanKickstart == 0 && speed > pwm_pos[NUM_EXTRUDER+2] && fanSpeed < PART_FAN_KICKSTART_THRESHOLD) {
if(speed) fanKickstart = PART_FAN_KICKSTART_TIME_BOOST / 10;
else fanKickstart = PART_FAN_KICKSTART_TIME_OFF_ON / 10;
}
#endif // FAN_KICKSTART_TIME

pwm_pos[NUM_EXTRUDER+2] = speed;
} // setFanSpeed
Expand Down

0 comments on commit 664d1cc

Please sign in to comment.