bugfix: false warnings in case of single coil or simultaneous injection
This commit is contained in:
parent
6169ce7de2
commit
208f36e4b0
|
@ -333,7 +333,7 @@ static ALWAYS_INLINE void handleFuelInjectionEvent(int injEventIndex, InjectionE
|
|||
// we are ignoring low RPM in order not to handle "engine was stopped to engine now running" transition
|
||||
if (rpm > 2 * engineConfiguration->cranking.rpm) {
|
||||
const char *outputName = event->outputs[0]->name;
|
||||
if (prevOutputName == outputName) {
|
||||
if (prevOutputName == outputName && engineConfiguration->injectionMode != IM_SIMULTANEOUS) {
|
||||
warning(CUSTOM_OBD_SKIPPED_FUEL, "looks like skipped fuel event %d %s", getRevolutionCounter(), outputName);
|
||||
}
|
||||
prevOutputName = outputName;
|
||||
|
|
|
@ -83,7 +83,7 @@ static void turnSparkPinHigh2(IgnitionEvent *event, IgnitionOutputPin *output) {
|
|||
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
if (engine->rpmCalculator.rpmValue > 2 * engineConfiguration->cranking.rpm) {
|
||||
const char *outputName = output->name;
|
||||
if (prevSparkName == outputName) {
|
||||
if (prevSparkName == outputName && engineConfiguration->ignitionMode != IM_ONE_COIL) {
|
||||
warning(CUSTOM_OBD_SKIPPED_SPARK, "looks like skipped spark event %d %s", getRevolutionCounter(), outputName);
|
||||
}
|
||||
prevSparkName = outputName;
|
||||
|
|
Loading…
Reference in New Issue