refactoring: reducing method name confusion
This commit is contained in:
parent
797f5bf9c5
commit
be0ee0e7ce
|
@ -30,7 +30,7 @@ int isIgnitionTimingError(void) {
|
||||||
return ignitionErrorDetection.sum(6) > 4;
|
return ignitionErrorDetection.sum(6) > 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
void prepareIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX);
|
void prepareCylinderIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
static void turnSparkPinLow2(IgnitionEvent *event, IgnitionOutputPin *output) {
|
static void turnSparkPinLow2(IgnitionEvent *event, IgnitionOutputPin *output) {
|
||||||
#if SPARK_EXTREME_LOGGING || defined(__DOXYGEN__)
|
#if SPARK_EXTREME_LOGGING || defined(__DOXYGEN__)
|
||||||
|
@ -73,7 +73,7 @@ void turnSparkPinLow(IgnitionEvent *event) {
|
||||||
EXPAND_Engine;
|
EXPAND_Engine;
|
||||||
#endif
|
#endif
|
||||||
// now that we've just fired a coil let's prepare the new schedule for the next engine revolution
|
// now that we've just fired a coil let's prepare the new schedule for the next engine revolution
|
||||||
prepareIgnitionSchedule(event PASS_ENGINE_PARAMETER_SUFFIX);
|
prepareCylinderIgnitionSchedule(event PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void turnSparkPinHigh2(IgnitionEvent *event, IgnitionOutputPin *output) {
|
static void turnSparkPinHigh2(IgnitionEvent *event, IgnitionOutputPin *output) {
|
||||||
|
@ -220,7 +220,7 @@ static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t trgEventI
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
void prepareIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
void prepareCylinderIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
// todo: clean up this implementation? does not look too nice as is.
|
// todo: clean up this implementation? does not look too nice as is.
|
||||||
|
|
||||||
// change of sign here from 'before TDC' to 'after TDC'
|
// change of sign here from 'before TDC' to 'after TDC'
|
||||||
|
@ -272,7 +272,7 @@ static void initializeIgnitionActions(IgnitionEventList *list DECLARE_ENGINE_PAR
|
||||||
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||||
list->elements[cylinderIndex].engine = engine;
|
list->elements[cylinderIndex].engine = engine;
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
prepareIgnitionSchedule(&list->elements[cylinderIndex] PASS_ENGINE_PARAMETER_SUFFIX);
|
prepareCylinderIgnitionSchedule(&list->elements[cylinderIndex] PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
}
|
}
|
||||||
list->isReady = true;
|
list->isReady = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue