inline method to reduce confusion
This commit is contained in:
parent
b536651a24
commit
6b0941b8ed
|
@ -398,7 +398,6 @@ private:
|
|||
|
||||
trigger_type_e getVvtTriggerType(vvt_mode_e vvtMode);
|
||||
|
||||
void prepareShapes();
|
||||
void applyNonPersistentConfiguration();
|
||||
void prepareOutputSignals();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -480,7 +480,8 @@ TEST(trigger, testTriggerDecoder) {
|
|||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||
|
||||
applyNonPersistentConfiguration();
|
||||
prepareShapes();
|
||||
prepareOutputSignals();
|
||||
|
||||
}
|
||||
|
||||
testTriggerDecoder2("sachs", SACHS, 0, 0.4800, 0.000);
|
||||
|
|
Loading…
Reference in New Issue