auto-sync
This commit is contained in:
parent
e7b8cd9646
commit
81570e5857
|
@ -49,6 +49,15 @@ engine_pins_s::engine_pins_s() {
|
|||
}
|
||||
}
|
||||
|
||||
void engine_pins_s::reset() {
|
||||
for (int i = 0; i < INJECTION_PIN_COUNT;i++) {
|
||||
injectors[i].reset();
|
||||
}
|
||||
for (int i = 0; i < IGNITION_PIN_COUNT;i++) {
|
||||
coils[i].reset();
|
||||
}
|
||||
}
|
||||
|
||||
void InjectorOutputPin::reset() {
|
||||
overlappingScheduleOffTime = 0;
|
||||
cancelNextTurningInjectorOff = false;
|
||||
|
|
|
@ -66,6 +66,7 @@ public:
|
|||
class engine_pins_s {
|
||||
public:
|
||||
engine_pins_s();
|
||||
void reset();
|
||||
OutputPin mainRelay;
|
||||
OutputPin fanRelay;
|
||||
OutputPin acRelay;
|
||||
|
|
|
@ -20,12 +20,7 @@ extern engine_pins_s enginePins;
|
|||
EngineTestHelper::EngineTestHelper(engine_type_e engineType) : engine (&persistentConfig) {
|
||||
ec = &persistentConfig.engineConfiguration;
|
||||
|
||||
for (int i = 0; i < INJECTION_PIN_COUNT;i++) {
|
||||
enginePins.injectors[i].reset();
|
||||
}
|
||||
for (int i = 0; i < IGNITION_PIN_COUNT;i++) {
|
||||
enginePins.coils[i].reset();
|
||||
}
|
||||
enginePins.reset();
|
||||
|
||||
engineConfiguration = ec;
|
||||
board_configuration_s * boardConfiguration = &engineConfiguration->bc;
|
||||
|
|
Loading…
Reference in New Issue