This commit is contained in:
parent
e7beb7c6a1
commit
c48c65cad1
|
@ -143,6 +143,10 @@ void setBoardDefaultConfiguration(void) {
|
|||
engineConfiguration->mainRelayPin = GPIOG_14; // pin: 111a, OUT_IO3
|
||||
engineConfiguration->malfunctionIndicatorPin = H144_OUT_PWM8;
|
||||
|
||||
engineConfiguration->brakePedalPin = H144_IN_RES3;
|
||||
engineConfiguration->clutchUpPin = H144_IN_RES2;
|
||||
engineConfiguration->acSwitch = H144_IN_RES1;
|
||||
|
||||
// "required" hardware is done - set some reasonable defaults
|
||||
setupDefaultSensorInputs();
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ static bool getClutchUpState() {
|
|||
|
||||
static bool getBrakePedalState() {
|
||||
#if EFI_GPIO_HARDWARE
|
||||
if (isBrainPinValid(engineConfiguration->throttlePedalUpPin)) {
|
||||
if (isBrainPinValid(engineConfiguration->brakePedalPin)) {
|
||||
return efiReadPin(engineConfiguration->brakePedalPin);
|
||||
}
|
||||
return engine->engineState.luaAdjustments.brakePedalState;
|
||||
|
|
Loading…
Reference in New Issue