rusefillc 2022-04-19 20:43:41 -04:00
parent fc768c2136
commit edb65b660e
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ bool LaunchControlBase::isInsideSwitchCondition() {
if (isSwitchActivated) {
#if !EFI_SIMULATOR
if (isBrainPinValid(engineConfiguration->launchActivatePin)) {
//todo: we should take into consideration if this sw is pulled high or low!
launchActivatePinState = efiReadPin(engineConfiguration->launchActivatePin);
launchActivatePinState = engineConfiguration->launchActivateInverted ^ efiReadPin(engineConfiguration->launchActivatePin);
}
#endif // EFI_PROD_CODE
return launchActivatePinState;