rusefillc 2022-11-09 14:41:21 -05:00
parent 7399084b3a
commit 29604cbd60
3 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,6 @@ jobs:
- build-target: hellenNA6 - build-target: hellenNA6
folder: hellen/hellen64_miataNA6_94 folder: hellen/hellen64_miataNA6_94
ini-file: rusefi_hellenNA6.ini ini-file: rusefi_hellenNA6.ini
skip-rate: 90
- build-target: hellen128 - build-target: hellen128
folder: hellen/hellen128 folder: hellen/hellen128

View File

@ -18,6 +18,9 @@ DDEFS += -DTS_NO_PRIMARY=1
DDEFS += -DFIRMWARE_ID=\"hellenNA6\" $(VAR_DEF_ENGINE_TYPE) DDEFS += -DFIRMWARE_ID=\"hellenNA6\" $(VAR_DEF_ENGINE_TYPE)
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE 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 DDEFS += -DSHORT_BOARD_NAME=hellenNA6
include $(BOARDS_DIR)/hellen/hellen-common176.mk include $(BOARDS_DIR)/hellen/hellen-common176.mk

View File

@ -625,11 +625,13 @@ void OutputPin::initPin(const char *msg, brain_pin_e brainPin, const pin_output_
? !actualValue ? !actualValue
: 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 the pin was set to logical 1, then set an error and disable the pin so that things don't catch fire
if (logicalValue) { 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)); 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(); OutputPin::deInit();
} }
#endif
} }
} }
#endif /* EFI_GPIO_HARDWARE */ #endif /* EFI_GPIO_HARDWARE */