From 29604cbd60d29a56d762fbb4c0b3aefb76d7e9f6 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 9 Nov 2022 14:41:21 -0500 Subject: [PATCH] https://github.com/rusefi/hellenNA6_issues/issues/35 --- .github/workflows/build-firmware.yaml | 1 - firmware/config/boards/hellen/hellen64_miataNA6_94/board.mk | 3 +++ firmware/controllers/system/efi_gpio.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index e74c2e6d00..2c5750f1e9 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -110,7 +110,6 @@ jobs: - build-target: hellenNA6 folder: hellen/hellen64_miataNA6_94 ini-file: rusefi_hellenNA6.ini - skip-rate: 90 - build-target: hellen128 folder: hellen/hellen128 diff --git a/firmware/config/boards/hellen/hellen64_miataNA6_94/board.mk b/firmware/config/boards/hellen/hellen64_miataNA6_94/board.mk index 5cad7027b6..d857966333 100644 --- a/firmware/config/boards/hellen/hellen64_miataNA6_94/board.mk +++ b/firmware/config/boards/hellen/hellen64_miataNA6_94/board.mk @@ -18,6 +18,9 @@ DDEFS += -DTS_NO_PRIMARY=1 DDEFS += -DFIRMWARE_ID=\"hellenNA6\" $(VAR_DEF_ENGINE_TYPE) DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE +# https://github.com/rusefi/hellenNA6_issues/issues/35 hack :( +DDEFS += -DDISABLE_PIN_STATE_VALIDATION=TRUE + DDEFS += -DSHORT_BOARD_NAME=hellenNA6 include $(BOARDS_DIR)/hellen/hellen-common176.mk diff --git a/firmware/controllers/system/efi_gpio.cpp b/firmware/controllers/system/efi_gpio.cpp index 4c8e7a34fb..b04f59e115 100644 --- a/firmware/controllers/system/efi_gpio.cpp +++ b/firmware/controllers/system/efi_gpio.cpp @@ -625,11 +625,13 @@ void OutputPin::initPin(const char *msg, brain_pin_e brainPin, const pin_output_ ? !actualValue : actualValue; +#ifndef DISABLE_PIN_STATE_VALIDATION // if the pin was set to logical 1, then set an error and disable the pin so that things don't catch fire if (logicalValue) { firmwareError(OBD_PCM_Processor_Fault, "HARDWARE VALIDATION FAILED %s: unexpected startup pin state %s actual value=%d logical value=%d mode=%s", msg, hwPortname(brainPin), actualValue, logicalValue, getPin_output_mode_e(*outputMode)); OutputPin::deInit(); } +#endif } } #endif /* EFI_GPIO_HARDWARE */