From f374fa0eb8cfa60981b25cb99856c14328fd703e Mon Sep 17 00:00:00 2001 From: Mike La Spina Date: Tue, 21 Dec 2021 01:26:31 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20FAST=5FPWM=5FFAN=20defa?= =?UTF-8?q?ult=201KHz=20base=20freq.=20(#23326)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Scott Lahteine --- Marlin/src/inc/Conditionals_post.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Marlin/src/inc/Conditionals_post.h b/Marlin/src/inc/Conditionals_post.h index 971318518d..7fb8395506 100644 --- a/Marlin/src/inc/Conditionals_post.h +++ b/Marlin/src/inc/Conditionals_post.h @@ -2668,10 +2668,14 @@ #endif /** - * FAST PWM FAN Settings + * FAST PWM FAN default PWM frequency */ -#if ENABLED(FAST_PWM_FAN) && !defined(FAST_PWM_FAN_FREQUENCY) - #define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1)) // Fan frequency default +#if !defined(FAST_PWM_FAN_FREQUENCY) && ENABLED(FAST_PWM_FAN) + #ifdef __AVR__ + #define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1)) + #else + #define FAST_PWM_FAN_FREQUENCY 1000U + #endif #endif /**