Overdwell at times around syncloss while cranking #6349

only: explicit above-zero initialization
This commit is contained in:
Andrey 2024-04-17 18:47:17 -04:00
parent 291bf2fba8
commit 59e415728e
1 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,13 @@ void initDataStructures() {
#if EFI_ENGINE_CONTROL
initFuelMap();
initSpeedDensity();
IgnitionEventList &events = engine->ignitionEvents;
for (size_t i=0;i<efi::size(events.elements);i++) {
// above-zero value helps distinguish events
events.elements[i].sparkCounter = 1;
}
// above-zero value helps distinguish events
engine->engineState.globalSparkCounter = 1;
#endif // EFI_ENGINE_CONTROL
}