rusefillc 2022-11-09 14:41:21 -05:00
parent fa2def726a
commit 800b6b7a95
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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 */