bugfix in constraint validation

This commit is contained in:
rusefi 2017-04-12 21:36:57 -04:00
parent 8f6cc6458c
commit de2d8a8402
1 changed files with 1 additions and 1 deletions

View File

@ -140,8 +140,8 @@ floatms_t getInjectionDuration(int rpm DECLARE_ENGINE_PARAMETER_S) {
} else { } else {
floatms_t baseFuel = getBaseFuel(rpm PASS_ENGINE_PARAMETER); floatms_t baseFuel = getBaseFuel(rpm PASS_ENGINE_PARAMETER);
floatms_t fuelPerCycle = getRunningFuel(baseFuel PASS_ENGINE_PARAMETER); floatms_t fuelPerCycle = getRunningFuel(baseFuel PASS_ENGINE_PARAMETER);
efiAssert(!cisnan(theoreticalInjectionLength), "NaN fuelPerCycle", 0);
theoreticalInjectionLength = fuelPerCycle / numberOfCylinders; theoreticalInjectionLength = fuelPerCycle / numberOfCylinders;
efiAssert(!cisnan(theoreticalInjectionLength), "NaN fuelPerCycle", 0);
#if EFI_PRINTF_FUEL_DETAILS || defined(__DOXYGEN__) #if EFI_PRINTF_FUEL_DETAILS || defined(__DOXYGEN__)
printf("baseFuel=%f fuelPerCycle=%f theoreticalInjectionLength=%f\t\n", printf("baseFuel=%f fuelPerCycle=%f theoreticalInjectionLength=%f\t\n",
baseFuel, fuelPerCycle, theoreticalInjectionLength); baseFuel, fuelPerCycle, theoreticalInjectionLength);