summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/mts-io.c3
-rw-r--r--io-module/mts_io_module.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 6cfc23a..a1c71ea 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -1213,7 +1213,8 @@ mts_id_eeprom_load(void)
set_buttons(default_buttons);
log_info("detected board %s", hw_version_str);
} else if (found_board(HW_VERSION_MTCPM_0_0,MTCPM_0_0,&hw_version_str,&mts_hw_version) ||
- found_board(HW_VERSION_MTCPM_0_1,MTCPM_0_1,&hw_version_str,&mts_hw_version)) {
+ found_board(HW_VERSION_MTCPM_0_1,MTCPM_0_1,&hw_version_str,&mts_hw_version) ||
+ found_board(HW_VERSION_MTCPM_0_2,MTCPM_0_1,&hw_version_str,&mts_hw_version)) {
need_append = 0;
current_blength = attr_blength = sizeof mtcpm_platform_attributes;
current_blength -= sizeof(struct attribute *); /* Length without terminating NULL */
diff --git a/io-module/mts_io_module.h b/io-module/mts_io_module.h
index 3897797..b22e4cb 100644
--- a/io-module/mts_io_module.h
+++ b/io-module/mts_io_module.h
@@ -52,6 +52,7 @@
#define HW_VERSION_MTCPM_DASH "MTCPM-"
#define HW_VERSION_MTCPM_0_0 "MTCPM-0.0" // Lora-16 CPU
#define HW_VERSION_MTCPM_0_1 "MTCPM-0.1" // MTCDT3AC CPU, GPS on CDC ACM driver
+#define HW_VERSION_MTCPM_0_2 "MTCPM-0.2"
enum {
MTHWUNKNOWN,