fix fan speed measuring for PWM = 255
This commit is contained in:
parent
91b12ff64b
commit
903028e574
|
|
@ -8521,7 +8521,7 @@ ISR(INT7_vect) {
|
||||||
//measuring speed now works for fanSpeed > 18 (approximately), which is sufficient because MIN_PRINT_FAN_SPEED is higher
|
//measuring speed now works for fanSpeed > 18 (approximately), which is sufficient because MIN_PRINT_FAN_SPEED is higher
|
||||||
#ifdef FAN_SOFT_PWM
|
#ifdef FAN_SOFT_PWM
|
||||||
//if (fanSpeedSoftPwm != 255) return;
|
//if (fanSpeedSoftPwm != 255) return;
|
||||||
if ((fanSpeed != 255) || (fanSpeed < MIN_PRINT_FAN_SPEED)) return;
|
if (!fan_measuring || (fanSpeed < MIN_PRINT_FAN_SPEED)) return;
|
||||||
#else //FAN_SOFT_PWM
|
#else //FAN_SOFT_PWM
|
||||||
if (fanSpeed < MIN_PRINT_FAN_SPEED) return;
|
if (fanSpeed < MIN_PRINT_FAN_SPEED) return;
|
||||||
#endif //FAN_SOFT_PWM
|
#endif //FAN_SOFT_PWM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue