瀏覽代碼

🩹 Coerce pin_t in set_pwm_duty macros (#23273)

Robby Candra 2 年之前
父節點
當前提交
dfa1c26471
No account linked to committer's email address
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0
    2
      Marlin/src/module/planner.cpp

+ 0
- 2
Marlin/src/module/planner.cpp 查看文件

@@ -1263,8 +1263,6 @@ void Planner::recalculate() {
1263 1263
 
1264 1264
     #if ENABLED(FAN_SOFT_PWM)
1265 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 1266
     #else
1269 1267
       #define _FAN_SET(F) set_pwm_duty(pin_t(FAN##F##_PIN), CALC_FAN_SPEED(F));
1270 1268
     #endif

Loading…
取消
儲存