From be0bbf3dc8e453010ba3e7ab1c9d6af2221af1e4 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 7 Sep 2020 15:53:26 -0400 Subject: [PATCH] Hellen says merge #1772 misc #2 --- firmware/controllers/algo/engine_configuration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 4f49f75508..a485d8a066 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -286,8 +286,6 @@ static void initTemperatureCurve(float *bins, float *values, int size, float def void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) { efiAssertVoid(OBD_PCM_Processor_Fault, engineConfiguration != NULL, "ec NULL"); memset(engineConfiguration, 0, sizeof(engine_configuration_s)); - - // Now that GPIO_UNASSIGNED == 0 we do not really need explicit zero assignments since memset above does that // todo: migrate 'EFI_ADC_NONE' to '0' and eliminate the need in this method altogether for (int i = 0; i < FSIO_ANALOG_INPUT_COUNT ; i++) { @@ -311,6 +309,7 @@ void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) { /* this breaks unit tests lovely TODO: fix this? engineConfiguration->tps1_1AdcChannel = EFI_ADC_NONE; */ + engineConfiguration->tps2_1AdcChannel = EFI_ADC_NONE; engineConfiguration->auxFastSensor1_adcChannel = EFI_ADC_NONE; engineConfiguration->acSwitchAdc = EFI_ADC_NONE; @@ -324,6 +323,7 @@ void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) { engineConfiguration->clutchDownPinMode = PI_PULLUP; engineConfiguration->clutchUpPinMode = PI_PULLUP; engineConfiguration->brakePedalPinMode = PI_PULLUP; + } void setDefaultBasePins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {