mirror of https://github.com/rusefi/rusefi.git
only: todo: boolean sensors should leverage sensor framework #6342
This commit is contained in:
parent
d6d872a516
commit
21af489f12
|
@ -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
|
||||
|
|
|
@ -177,6 +177,7 @@ public:
|
|||
GearControllerBase *gearController;
|
||||
#endif
|
||||
|
||||
// todo: boolean sensors should leverage sensor framework #6342
|
||||
SwitchedState clutchUpSwitchedState;
|
||||
SwitchedState brakePedalSwitchedState;
|
||||
SwitchedState acButtonSwitchedState;
|
||||
|
|
Loading…
Reference in New Issue