inline method to reduce confusion

This commit is contained in:
Andrey 2022-09-14 01:24:19 -04:00
parent b536651a24
commit 6b0941b8ed
5 changed files with 7 additions and 15 deletions

View File

@ -398,7 +398,6 @@ private:
trigger_type_e getVvtTriggerType(vvt_mode_e vvtMode);
void prepareShapes();
void applyNonPersistentConfiguration();
void prepareOutputSignals();

View File

@ -1119,16 +1119,6 @@ void applyNonPersistentConfiguration() {
#endif // EFI_ENGINE_CONTROL
}
#if EFI_ENGINE_CONTROL
void prepareShapes() {
prepareOutputSignals();
engine->injectionEvents.addFuelEvents();
}
#endif
void setTwoStrokeOperationMode() {
engineConfiguration->twoStroke = true;
}

View File

@ -464,8 +464,10 @@ void commonInitEngineController() {
* This has to go after 'enginePins.startPins()' in order to
* properly detect un-assigned output pins
*/
prepareShapes();
#endif /* EFI_PROD_CODE && EFI_ENGINE_CONTROL */
prepareOutputSignals();
engine->injectionEvents.addFuelEvents();
#endif // EFI_ENGINE_CONTROL
#if EFI_SENSOR_CHART
initSensorChart();

View File

@ -444,7 +444,7 @@ void prepareOutputSignals() {
prepareIgnitionPinIndices();
TRIGGER_WAVEFORM(prepareShape(engine->triggerCentral.triggerFormDetails));
engine->triggerCentral.triggerShape.prepareShape(engine->triggerCentral.triggerFormDetails);
// Fuel schedule may now be completely wrong, force a reset
engine->injectionEvents.invalidate();

View File

@ -480,7 +480,8 @@ TEST(trigger, testTriggerDecoder) {
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
applyNonPersistentConfiguration();
prepareShapes();
prepareOutputSignals();
}
testTriggerDecoder2("sachs", SACHS, 0, 0.4800, 0.000);