Selaa lähdekoodia

Change dithering behavior to intended.

RowanMeara 6 vuotta sitten
vanhempi
commit
10e366ebd7
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      Marlin/temperature.cpp

+ 3
- 3
Marlin/temperature.cpp Näytä tiedosto

@@ -1746,15 +1746,15 @@ void Temperature::isr() {
1746 1746
 
1747 1747
       #if ENABLED(FAN_SOFT_PWM)
1748 1748
         #if HAS_FAN0
1749
-          soft_pwm_count_fan[0] = ((soft_pwm_count_fan[0] & pwm_mask) + soft_pwm_amount_fan[0]) >> 1;
1749
+          soft_pwm_count_fan[0] = (soft_pwm_count_fan[0] & pwm_mask) + (soft_pwm_amount_fan[0] >> 1);
1750 1750
           WRITE_FAN(soft_pwm_count_fan[0] > pwm_mask ? HIGH : LOW);
1751 1751
         #endif
1752 1752
         #if HAS_FAN1
1753
-          soft_pwm_count_fan[1] = ((soft_pwm_count_fan[1] & pwm_mask) + soft_pwm_amount_fan[1]) >> 1;
1753
+          soft_pwm_count_fan[1] = (soft_pwm_count_fan[1] & pwm_mask) + (soft_pwm_amount_fan[1] >> 1);
1754 1754
           WRITE_FAN1(soft_pwm_count_fan[1] > pwm_mask ? HIGH : LOW);
1755 1755
         #endif
1756 1756
         #if HAS_FAN2
1757
-          soft_pwm_count_fan[2] = ((soft_pwm_count_fan[2] & pwm_mask) + soft_pwm_amount_fan[2]) >> 1;
1757
+          soft_pwm_count_fan[2] = (soft_pwm_count_fan[2] & pwm_mask) + (soft_pwm_amount_fan[2] >> 1);
1758 1758
           WRITE_FAN2(soft_pwm_count_fan[2] > pwm_mask ? HIGH : LOW);
1759 1759
         #endif
1760 1760
       #endif

Loading…
Peruuta
Tallenna