From 6edda2b3a73cbf41f6f92055d8949a4095f24d33 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 23 May 2019 14:14:49 -0500 Subject: New MTHS HW Version 0.1 --- io-module/mts-io.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'io-module/mts-io.c') 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; -- cgit v1.2.3