From a32e476a3f4ca8605ce1013288dab90f8e89cff7 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 25 Nov 2019 09:06:30 -0600 Subject: Remove default mtcdt-0.0 hardware version which does not work on mtcdt3 --- configure.ac | 2 +- io-module/mts-io.c | 41 +++++++++++++++++++---------------------- io-module/mts_io_module.h | 2 +- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/configure.ac b/configure.ac index ca6635a..b889065 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([mts-io], [4.2.0]) +AC_INIT([mts-io], [4.2.1]) AC_CONFIG_SRCDIR([util/mts_util_lora2_reset.c]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 63d695b..7078708 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -834,29 +834,26 @@ mts_id_eeprom_load(void) set_buttons(default_buttons); mts_hw_version = MTCPM_0_0; log_info("detected board %s", HW_VERSION_MTCPM_0_0); - } else { - if(noradio) { - struct attribute **ap = mtcdt_platform_attribute_group.attrs; - while(1) { - if(ap[j] == NULL) { - log_info("Did not find radio power attribute. Possible driver fault."); - break; - } - j++; - if (is_radio_power_attr_mtcdt(ap[j])) { - log_info("Pruning radio feature from mts-io",j); - ap[j] = NULL; - break; - } - } - } + } else { + int i; - attr_group = &mtcdt_platform_attribute_group; - gpio_pins = gpio_pins_mtcdt_0_0; - mts_hw_version = MTCDT_0_0; - set_buttons(default_buttons); - log_info("detected board %s", HW_VERSION_MTCDT_0_0); - } + for(i=0;i