diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index bded3fd946..5b026a61b6 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -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 diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 6072e5f2ed..d673604092 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -177,6 +177,7 @@ public: GearControllerBase *gearController; #endif + // todo: boolean sensors should leverage sensor framework #6342 SwitchedState clutchUpSwitchedState; SwitchedState brakePedalSwitchedState; SwitchedState acButtonSwitchedState;