Skip to content

Commit

Permalink
RegisteredNamedOutputPin fix #285
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 19, 2024
1 parent 0eabef9 commit 83cd436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/controllers/engine_cycle/high_pressure_fuel_pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void HpfpController::onFastCallback() {
}

void HpfpController::pinTurnOn(HpfpController *self) {
enginePins.hpfpValve.setHigh();
enginePins.hpfpValve.setValue(true);

// By scheduling the close after we already open, we don't have to worry if the engine
// stops, the valve will be turned off in a certain amount of time regardless.
Expand All @@ -178,7 +178,7 @@ void HpfpController::pinTurnOn(HpfpController *self) {
}

void HpfpController::pinTurnOff(HpfpController *self) {
enginePins.hpfpValve.setLow();
enginePins.hpfpValve.setValue(false);

self->scheduleNextCycle();
}
Expand Down

0 comments on commit 83cd436

Please sign in to comment.