bugfix in constraint validation

This commit is contained in:
rusefi 2017-04-12 21:36:57 -04:00
parent c72fe93280
commit f2ea11f94f
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 {
floatms_t baseFuel = getBaseFuel(rpm PASS_ENGINE_PARAMETER);
floatms_t fuelPerCycle = getRunningFuel(baseFuel PASS_ENGINE_PARAMETER);
efiAssert(!cisnan(theoreticalInjectionLength), "NaN fuelPerCycle", 0);
theoreticalInjectionLength = fuelPerCycle / numberOfCylinders;
efiAssert(!cisnan(theoreticalInjectionLength), "NaN fuelPerCycle", 0);
#if EFI_PRINTF_FUEL_DETAILS || defined(__DOXYGEN__)
printf("baseFuel=%f fuelPerCycle=%f theoreticalInjectionLength=%f\t\n",
baseFuel, fuelPerCycle, theoreticalInjectionLength);