Fix bad SET_FAST_PWM_FREQ calls (#20227)
This commit is contained in:
parent
072b15784f
commit
1d631b7280
@ -1668,12 +1668,12 @@ void Temperature::updateTemperaturesFromRawValues() {
|
|||||||
#endif
|
#endif
|
||||||
#define INIT_FAN_PIN(P) do{ _INIT_FAN_PIN(P); SET_FAST_PWM_FREQ(P); }while(0)
|
#define INIT_FAN_PIN(P) do{ _INIT_FAN_PIN(P); SET_FAST_PWM_FREQ(P); }while(0)
|
||||||
#if EXTRUDER_AUTO_FAN_SPEED != 255
|
#if EXTRUDER_AUTO_FAN_SPEED != 255
|
||||||
#define INIT_E_AUTO_FAN_PIN(P) do{ if (P == FAN1_PIN || P == FAN2_PIN) { SET_PWM(P); SET_FAST_PWM_FREQ(FAST_PWM_FAN_FREQUENCY); } else SET_OUTPUT(P); }while(0)
|
#define INIT_E_AUTO_FAN_PIN(P) do{ if (P == FAN1_PIN || P == FAN2_PIN) { SET_PWM(P); SET_FAST_PWM_FREQ(P); } else SET_OUTPUT(P); }while(0)
|
||||||
#else
|
#else
|
||||||
#define INIT_E_AUTO_FAN_PIN(P) SET_OUTPUT(P)
|
#define INIT_E_AUTO_FAN_PIN(P) SET_OUTPUT(P)
|
||||||
#endif
|
#endif
|
||||||
#if CHAMBER_AUTO_FAN_SPEED != 255
|
#if CHAMBER_AUTO_FAN_SPEED != 255
|
||||||
#define INIT_CHAMBER_AUTO_FAN_PIN(P) do{ if (P == FAN1_PIN || P == FAN2_PIN) { SET_PWM(P); SET_FAST_PWM_FREQ(FAST_PWM_FAN_FREQUENCY); } else SET_OUTPUT(P); }while(0)
|
#define INIT_CHAMBER_AUTO_FAN_PIN(P) do{ if (P == FAN1_PIN || P == FAN2_PIN) { SET_PWM(P); SET_FAST_PWM_FREQ(P); } else SET_OUTPUT(P); }while(0)
|
||||||
#else
|
#else
|
||||||
#define INIT_CHAMBER_AUTO_FAN_PIN(P) SET_OUTPUT(P)
|
#define INIT_CHAMBER_AUTO_FAN_PIN(P) SET_OUTPUT(P)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user