Browse Source

🩹 Coerce pin_t in set_pwm_duty macros (#23273)

Robby Candra 2 years ago
parent
commit
dfa1c26471
No account linked to committer's email address
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      Marlin/src/module/planner.cpp

+ 0
- 2
Marlin/src/module/planner.cpp View File

1263
 
1263
 
1264
     #if ENABLED(FAN_SOFT_PWM)
1264
     #if ENABLED(FAN_SOFT_PWM)
1265
       #define _FAN_SET(F) thermalManager.soft_pwm_amount_fan[F] = CALC_FAN_SPEED(F);
1265
       #define _FAN_SET(F) thermalManager.soft_pwm_amount_fan[F] = CALC_FAN_SPEED(F);
1266
-    #elif ENABLED(FAST_PWM_FAN)
1267
-      #define _FAN_SET(F) set_pwm_duty(FAN##F##_PIN, CALC_FAN_SPEED(F));
1268
     #else
1266
     #else
1269
       #define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F));
1267
       #define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F));
1270
     #endif
1268
     #endif

Loading…
Cancel
Save