fix fan speed measuring for PWM = 255

This commit is contained in:
PavelSindler 2019-02-05 17:46:31 +01:00
parent 91b12ff64b
commit 903028e574
1 changed files with 1 additions and 1 deletions

View File

@ -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
#ifdef FAN_SOFT_PWM
//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
if (fanSpeed < MIN_PRINT_FAN_SPEED) return;
#endif //FAN_SOFT_PWM