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