Skip to content

Commit

Permalink
🩹 Coerce pin_t in set_pwm_duty macros (#23273)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbycandra authored Dec 8, 2021
1 parent 65e52c1 commit dfa1c26
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,8 +1263,6 @@ void Planner::recalculate() {

#if ENABLED(FAN_SOFT_PWM)
#define _FAN_SET(F) thermalManager.soft_pwm_amount_fan[F] = CALC_FAN_SPEED(F);
#elif ENABLED(FAST_PWM_FAN)
#define _FAN_SET(F) set_pwm_duty(FAN##F##_PIN, CALC_FAN_SPEED(F));
#else
#define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F));
#endif
Expand Down

0 comments on commit dfa1c26

Please sign in to comment.