Skip to content

Commit

Permalink
Fix fan pin from conflicting with other pins on Teensyduino based pla…
Browse files Browse the repository at this point in the history
…tforms
  • Loading branch information
lwalkera committed Jan 19, 2014
1 parent a2b97c3 commit ebe5f4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,12 +726,13 @@ void tp_init()
#if defined(HEATER_BED_PIN) && (HEATER_BED_PIN > -1)
SET_OUTPUT(HEATER_BED_PIN);
#endif
#if defined(FAN_PIN) && (FAN_PIN > -1)
SET_OUTPUT(FAN_PIN);
#if defined(FAN_PIN) && (FAN_PIN > -1)
#ifdef FAST_PWM_FAN
SET_OUTPUT(FAN_PIN);
setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#ifdef FAN_SOFT_PWM
SET_OUTPUT(FAN_PIN);
soft_pwm_fan = fanSpeedSoftPwm / 2;
#endif
#endif
Expand Down

0 comments on commit ebe5f4b

Please sign in to comment.