only: todo: boolean sensors should leverage sensor framework #6342

This commit is contained in:
rusefi 2024-04-07 15:08:58 -04:00
parent d6d872a516
commit 21af489f12
2 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,7 @@ static bool getClutchUpState() {
if (isBrainPinValid(engineConfiguration->clutchUpPin)) {
return engineConfiguration->clutchUpPinInverted ^ efiReadPin(engineConfiguration->clutchUpPin);
}
// todo: boolean sensors should leverage sensor framework #6342
return engine->engineState.lua.clutchUpState;
}
@ -236,6 +237,7 @@ static bool getBrakePedalState() {
if (isBrainPinValid(engineConfiguration->brakePedalPin)) {
return efiReadPin(engineConfiguration->brakePedalPin);
}
// todo: boolean sensors should leverage sensor framework #6342
return engine->engineState.lua.brakePedalState;
}
#endif // EFI_GPIO_HARDWARE

View File

@ -177,6 +177,7 @@ public:
GearControllerBase *gearController;
#endif
// todo: boolean sensors should leverage sensor framework #6342
SwitchedState clutchUpSwitchedState;
SwitchedState brakePedalSwitchedState;
SwitchedState acButtonSwitchedState;