summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Pedash <vyacheslav.pedash@globallogic.com>2022-08-18 15:38:36 +0300
committerJohn Klug <john.klug@multitech.com>2022-09-23 12:36:04 -0500
commit231fe82e138e597982c5c761b8ae0d248f3e2f1f (patch)
treebe7069a4bbd3924ae023989fd1d58f0cc6efcf16
parent65b417af62c7f686bbc07c91f40fc037f47377d3 (diff)
downloadmts-io-231fe82e138e597982c5c761b8ae0d248f3e2f1f.tar.gz
mts-io-231fe82e138e597982c5c761b8ae0d248f3e2f1f.tar.bz2
mts-io-231fe82e138e597982c5c761b8ae0d248f3e2f1f.zip
MTX-4571 MTCDT3AC: Add MTCPM v 0.2
-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,