Explorar o código

fix fan speed measuring for PWM = 255

PavelSindler %!s(int64=6) %!d(string=hai) anos
pai
achega
903028e574
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Firmware/Marlin_main.cpp

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -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