From 39c2c038be51cd1bfc9cd963baf68307c28f542c Mon Sep 17 00:00:00 2001 From: Robby Candra Date: Thu, 9 Dec 2021 02:15:31 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Coerce=20pin=5Ft=20in=20set=5Fpw?= =?UTF-8?q?m=5Fduty=20macros=20(#23273)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/planner.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp index 28364d4be0..5a4f65d916 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -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