From 19a8500a43280c46f170d26bf49df50571e62dee Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 20 May 2020 08:55:38 -0400 Subject: [PATCH] Clean-up analog channels in "unit" tests fix #1456 --- firmware/controllers/algo/auto_generated_enums.cpp | 4 ---- firmware/controllers/algo/rusefi_hw_enums.h | 7 ------- 2 files changed, 11 deletions(-) diff --git a/firmware/controllers/algo/auto_generated_enums.cpp b/firmware/controllers/algo/auto_generated_enums.cpp index 866c609be8..40ecefd0de 100644 --- a/firmware/controllers/algo/auto_generated_enums.cpp +++ b/firmware/controllers/algo/auto_generated_enums.cpp @@ -77,10 +77,6 @@ case EFI_ADC_ERROR: return "EFI_ADC_ERROR"; case EFI_ADC_NONE: return "EFI_ADC_NONE"; -#if EFI_UNIT_TEST -case TEST_MAF_CHANNEL: - return "EFI_TEST"; -#endif /* EFI_UNIT_TEST */ } return NULL; } diff --git a/firmware/controllers/algo/rusefi_hw_enums.h b/firmware/controllers/algo/rusefi_hw_enums.h index 2cc31d7e29..12957e227f 100644 --- a/firmware/controllers/algo/rusefi_hw_enums.h +++ b/firmware/controllers/algo/rusefi_hw_enums.h @@ -266,13 +266,6 @@ typedef enum __attribute__ ((__packed__)) { // todo: bad choice of value since now we have ADC_CHANNEL_SENSOR and could end up with 17 and 18 also EFI_ADC_NONE = 16, EFI_ADC_ERROR = 17, -#if EFI_UNIT_TEST - /** - * these values are unfortunately visible to BoardReader - * and TunerStudio would need these ordinals to fit into field size - */ - TEST_MAF_CHANNEL = 18, -#endif /* EFI_UNIT_TEST */ } adc_channel_e; #define INCOMPATIBLE_CONFIG_CHANGE EFI_ADC_0