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