mirror of https://github.com/rusefi/rusefi.git
Overdwell at times around syncloss while cranking #6349
only: explicit above-zero initialization
This commit is contained in:
parent
291bf2fba8
commit
59e415728e
|
@ -114,6 +114,13 @@ void initDataStructures() {
|
||||||
#if EFI_ENGINE_CONTROL
|
#if EFI_ENGINE_CONTROL
|
||||||
initFuelMap();
|
initFuelMap();
|
||||||
initSpeedDensity();
|
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
|
#endif // EFI_ENGINE_CONTROL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue