refactoring
This commit is contained in:
parent
5537b2035c
commit
8deff87b4f
|
@ -36,7 +36,7 @@ static void plainPinTurnOff(RegisteredNamedOutputPin *output) {
|
||||||
|
|
||||||
void hpfpPlainPinTurnOn(HpfpActor *current);
|
void hpfpPlainPinTurnOn(HpfpActor *current);
|
||||||
|
|
||||||
static void handle(HpfpActor *actor) {
|
static void scheduleNextCycle(HpfpActor *actor) {
|
||||||
#if EFI_UNIT_TEST
|
#if EFI_UNIT_TEST
|
||||||
Engine *engine = actor->engine;
|
Engine *engine = actor->engine;
|
||||||
EXPAND_Engine;
|
EXPAND_Engine;
|
||||||
|
@ -59,7 +59,7 @@ static void handle(HpfpActor *actor) {
|
||||||
void hpfpPlainPinTurnOn(HpfpActor *current) {
|
void hpfpPlainPinTurnOn(HpfpActor *current) {
|
||||||
RegisteredNamedOutputPin *output = &enginePins.hpfpValve;
|
RegisteredNamedOutputPin *output = &enginePins.hpfpValve;
|
||||||
output->setHigh();
|
output->setHigh();
|
||||||
handle(current);
|
scheduleNextCycle(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
void initHPFP(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
void initHPFP(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
@ -72,7 +72,7 @@ void initHPFP(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
INJECT_ENGINE_REFERENCE(actor);
|
INJECT_ENGINE_REFERENCE(actor);
|
||||||
|
|
||||||
actor->extra = 720 / LOBE_COUNT * i;
|
actor->extra = 720 / LOBE_COUNT * i;
|
||||||
handle(actor);
|
scheduleNextCycle(actor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue