better state validation

This commit is contained in:
rusefi 2017-08-26 19:54:06 -04:00
parent a2490c55b8
commit 5b0650bdb7
1 changed files with 2 additions and 1 deletions

View File

@ -132,8 +132,9 @@ bool FuelSchedule::addFuelEventsForCylinder(int i DECLARE_ENGINE_PARAMETER_SUFF
// injection offset map not ready - we are not ready to schedule fuel events
return false;
}
angle_t baseAngle = injectionOffset - injectionDuration;
const angle_t baseAngle = injectionOffset - injectionDuration;
efiAssert(!cisnan(baseAngle), "NaN baseAngle", false);
assertAngleRange(baseAngle, "baseAngle_r");
int index;