trailing spark outputs fix #2931
This commit is contained in:
parent
ba358b4326
commit
79be2db269
|
@ -288,10 +288,12 @@ void turnSparkPinHigh(IgnitionEvent *event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIG(enableTrailingSparks)) {
|
if (CONFIG(enableTrailingSparks)) {
|
||||||
|
IgnitionOutputPin *output = &enginePins.trailingCoils[event->cylinderNumber];
|
||||||
|
INJECT_ENGINE_REFERENCE(output);
|
||||||
// Trailing sparks are enabled - schedule an event for the corresponding trailing coil
|
// Trailing sparks are enabled - schedule an event for the corresponding trailing coil
|
||||||
scheduleByAngle(
|
scheduleByAngle(
|
||||||
&event->trailingSparkCharge, nowNt, ENGINE(engineState.trailingSparkAngle),
|
&event->trailingSparkCharge, nowNt, ENGINE(engineState.trailingSparkAngle),
|
||||||
{ &chargeTrailingSpark, &enginePins.trailingCoils[event->cylinderNumber] }
|
{ &chargeTrailingSpark, output }
|
||||||
PASS_ENGINE_PARAMETER_SUFFIX
|
PASS_ENGINE_PARAMETER_SUFFIX
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue