clarification and saving one byte

only:uaefi
This commit is contained in:
rusefillc 2025-01-07 22:31:22 -05:00
parent b2d3b95191
commit 1974029736
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,8 @@ struct_no_prefix engine_state_s
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0 int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
! huh: why exactly are those byte states not bit states?! ! huh: bit states are using a complete byte because SwitchedState helper class wants a reference
int8_t clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@ int8_t clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
int8_t clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
int8_t brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@ int8_t brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
int8_t startStopState int8_t startStopState
int8_t smartChipState int8_t smartChipState
@ -54,6 +53,7 @@ struct_no_prefix engine_state_s
bit luaDigitalState1 bit luaDigitalState1
bit luaDigitalState2 bit luaDigitalState2
bit luaDigitalState3 bit luaDigitalState3
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
uint32_t startStopStateToggleCounter uint32_t startStopStateToggleCounter
float luaSoftSparkSkip float luaSoftSparkSkip