startStopPhysicalState

only:alphax-4chan_f7
This commit is contained in:
rusefillc 2023-09-25 13:11:04 -04:00
parent 92292aeddd
commit 8e458f4ec6
2 changed files with 3 additions and 0 deletions

View File

@ -33,10 +33,12 @@ struct_no_prefix engine_state_s
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
! huh: why exactly are those byte states not bit states?!
int8_t clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
int8_t clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
int8_t brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
int8_t startStopState
bit startStopPhysicalState
uint32_t startStopStateToggleCounter
float egtValue1

View File

@ -61,6 +61,7 @@ void slowStartStopButtonCallback() {
onStartStopButtonToggle();
}
engine->engineState.startStopState = startStopState;
engine->engineState.startStopPhysicalState = startStopButtonDebounce.getPhysicalState();
bool isStarterEngaged = enginePins.starterControl.getLogicValue();