[2.0.x] Error for FAST_PWM_FAN with 32 bit CPU (#10798)

2.0.x
Bob Kuhn 7 years ago committed by Scott Lahteine
parent 16f92dca44
commit d557c84a71

@ -1730,4 +1730,8 @@ static_assert(COUNT(sanity_arr_3) <= XYZE_N, "DEFAULT_MAX_ACCELERATION has too m
#error "POWER_LOSS_RECOVERY currently requires an LCD Controller." #error "POWER_LOSS_RECOVERY currently requires an LCD Controller."
#endif #endif
#if ENABLED(FAST_PWM_FAN) && !(defined(ARDUINO) && !defined(ARDUINO_ARCH_SAM))
#error "FAST_PWM_FAN only supported by 8 bit CPUs."
#endif
#endif // _SANITYCHECK_H_ #endif // _SANITYCHECK_H_

@ -1385,7 +1385,7 @@ void Temperature::init() {
#if ENABLED(FAST_PWM_FAN) #if ENABLED(FAST_PWM_FAN)
void Temperature::setPwmFrequency(const pin_t pin, int val) { void Temperature::setPwmFrequency(const pin_t pin, int val) {
#ifdef ARDUINO #if defined(ARDUINO) && !defined(ARDUINO_ARCH_SAM)
val &= 0x07; val &= 0x07;
switch (digitalPinToTimer(pin)) { switch (digitalPinToTimer(pin)) {
#ifdef TCCR0A #ifdef TCCR0A

Loading…
Cancel
Save