diff options
author | Jeff Hatch <jhatch@multitech.com> | 2019-05-21 15:33:35 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-05-23 10:07:32 -0500 |
commit | c26350b127f9673b82429aa553a3cbcfe8fd7113 (patch) | |
tree | d5ef253f2014f65107537ed7c16d1f6189aa55e2 /io-module/mts-io.c | |
parent | f4213f291c0a0d708333bf078c87304ddaac289a (diff) | |
download | mts-io-c26350b127f9673b82429aa553a3cbcfe8fd7113.tar.gz mts-io-c26350b127f9673b82429aa553a3cbcfe8fd7113.tar.bz2 mts-io-c26350b127f9673b82429aa553a3cbcfe8fd7113.zip |
Updates to add support for MTQ-MTR as hw-version MTRV1-0_3
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r-- | io-module/mts-io.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c index a17ff3c..0ea7e45 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -668,7 +668,7 @@ mts_id_eeprom_load(void) } attr_group = &mtcap_0_0_platform_attribute_group; gpio_pins = gpio_pins_mtcap_0_0; - set_buttons(default_buttons); + set_buttons(default_buttons); if (DEVICE_CAPA(id_eeprom.capa, CAPA_LORA)) { attr_group_lora = &mtcap_0_0_lora_attribute_group; } @@ -676,33 +676,39 @@ mts_id_eeprom_load(void) } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTR_0_0, strlen(HW_VERSION_MTR_0_0)) == 0) { attr_group = &mtr_platform_attribute_group; gpio_pins = gpio_pins_mtr_0_0; - set_buttons(default_buttons); + set_buttons(default_buttons); mts_hw_version = MTR_0_0; log_info("detected board %s", HW_VERSION_MTR_0_0); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTR_0_1, strlen(HW_VERSION_MTR_0_1)) == 0) { attr_group = &mtr_platform_attribute_group; gpio_pins = gpio_pins_mtr_0_1; - set_buttons(default_buttons); + set_buttons(default_buttons); mts_hw_version = MTR_0_1; log_info("detected board %s", HW_VERSION_MTR_0_1); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTRV1_0_0, strlen(HW_VERSION_MTRV1_0_0)) == 0) { attr_group = &mtr_platform_attribute_group; gpio_pins = gpio_pins_mtrv1_0_0; - set_buttons(default_buttons); + set_buttons(default_buttons); mts_hw_version = MTRV1_0_0; log_info("detected board %s", HW_VERSION_MTRV1_0_0); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTRV1_0_1, strlen(HW_VERSION_MTRV1_0_1)) == 0) { attr_group = &mtrv1_0_1_platform_attribute_group; gpio_pins = gpio_pins_mtrv1_0_1; - set_buttons(default_buttons); + set_buttons(default_buttons); mts_hw_version = MTRV1_0_1; log_info("detected board %s", HW_VERSION_MTRV1_0_1); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTRV1_0_2, strlen(HW_VERSION_MTRV1_0_2)) == 0) { attr_group = &mtrv1_0_2_platform_attribute_group; gpio_pins = gpio_pins_mtrv1_0_2; - set_buttons(default_buttons); + set_buttons(default_buttons); mts_hw_version = MTRV1_0_2; log_info("detected board %s", HW_VERSION_MTRV1_0_2); + } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTRV1_0_3, strlen(HW_VERSION_MTRV1_0_3)) == 0) { + attr_group = &mtrv1_0_3_platform_attribute_group; + gpio_pins = gpio_pins_mtrv1_0_3; + set_buttons(default_buttons); + mts_hw_version = MTRV1_0_3; + log_info("detected board %s", HW_VERSION_MTRV1_0_3); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTHS_0_0, strlen(HW_VERSION_MTHS_0_0)) == 0) { attr_group = &mths_0_0_platform_attribute_group; gpio_pins = gpio_pins_mths_0_0; |