summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-05-23 14:14:49 -0500
committerJohn Klug <john.klug@multitech.com>2019-05-23 14:14:49 -0500
commit6edda2b3a73cbf41f6f92055d8949a4095f24d33 (patch)
tree5e07ec2931e4d5142f9a6e37e4fd9dbd8f01d240 /io-module/mts-io.c
parentdb87c99e4aa789cf9fdbfaf5b4f74a52641ec937 (diff)
downloadmts-io-6edda2b3a73cbf41f6f92055d8949a4095f24d33.tar.gz
mts-io-6edda2b3a73cbf41f6f92055d8949a4095f24d33.tar.bz2
mts-io-6edda2b3a73cbf41f6f92055d8949a4095f24d33.zip
New MTHS HW Version 0.14.1.3
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r--io-module/mts-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 0ea7e45..5e557fd 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -715,6 +715,12 @@ mts_id_eeprom_load(void)
set_buttons(mths_buttons_0_0);
mts_hw_version = MTHS_0_0;
log_info("detected board %s", HW_VERSION_MTHS_0_0);
+ } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTHS_0_1, strlen(HW_VERSION_MTHS_0_1)) == 0) {
+ attr_group = &mths_0_0_platform_attribute_group;
+ gpio_pins = gpio_pins_mths_0_1;
+ set_buttons(mths_buttons_0_0); /* Only one button version */
+ mts_hw_version = MTHS_0_1;
+ log_info("detected board %s", HW_VERSION_MTHS_0_1);
} else if (((tmp=HW_VERSION_MTCDT_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) ||
((tmp=HW_VERSION_MTCDTIP_0_0),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) {
current_blength = attr_blength = sizeof mtcdt_0_1_platform_attributes;