- fix detect cylinder for knock then wasted_spark (#7062)

Co-authored-by: 3er0.1ive <3er0.1ive@veeroute.com>
This commit is contained in:
3eR01ive 2024-11-11 21:31:58 +03:00 committed by GitHub
parent f06a3d65a4
commit 94d765e4d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ if (engineConfiguration->debugMode == DBG_DWELL_METRIC) {
prepareCylinderIgnitionSchedule(dwellAngleDuration, sparkDwell, event);
}
engine->onSparkFireKnockSense(event->coilIndex, nowNt);
engine->onSparkFireKnockSense(event->cylinderIndex, nowNt);
}
static bool startDwellByTurningSparkPinHigh(IgnitionEvent *event, IgnitionOutputPin *output) {