add reset
This commit is contained in:
parent
75ec57a5d4
commit
b3261f25f3
|
@ -57,6 +57,8 @@ public:
|
|||
void addFuelEvents(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
bool addFuelEventsForCylinder(int cylinderIndex DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
void resetOverlapping();
|
||||
|
||||
/**
|
||||
* injection events, per cylinder
|
||||
*/
|
||||
|
|
|
@ -166,6 +166,7 @@ void RpmCalculator::setRpmValue(float value DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
// This presumably fixes injection mode change for cranking-to-running transition.
|
||||
// 'isSimultanious' flag should be updated for events if injection modes differ for cranking and running.
|
||||
if (state != oldState) {
|
||||
engine->injectionEvents.resetOverlapping();
|
||||
engine->injectionEvents.addFuelEvents(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -117,6 +117,12 @@ void FuelSchedule::clear() {
|
|||
isReady = false;
|
||||
}
|
||||
|
||||
void FuelSchedule::resetOverlapping() {
|
||||
for (size_t i = 0; i < efi::size(enginePins.injectors); i++) {
|
||||
enginePins.injectors[i].reset();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns false in case of error, true if success
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue