Browse Source

🩹 Coerce pin_t in set_pwm_duty macros (#23273)

vanilla_fb_2.0.x
Robby Candra 3 years ago
committed by Scott Lahteine
parent
commit
39c2c038be
  1. 2
      Marlin/src/module/planner.cpp

2
Marlin/src/module/planner.cpp

@ -1263,8 +1263,6 @@ void Planner::recalculate() {
#if ENABLED(FAN_SOFT_PWM) #if ENABLED(FAN_SOFT_PWM)
#define _FAN_SET(F) thermalManager.soft_pwm_amount_fan[F] = CALC_FAN_SPEED(F); #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 #else
#define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F)); #define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F));
#endif #endif

Loading…
Cancel
Save