1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-28 22:35:21 +00:00

🩹 Coerce pin_t in set_pwm_duty macros (#23273)

This commit is contained in:
Robby Candra 2021-12-09 02:15:31 +07:00 committed by GitHub
parent 65e52c1150
commit dfa1c26471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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