From 231fe82e138e597982c5c761b8ae0d248f3e2f1f Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Thu, 18 Aug 2022 15:38:36 +0300 Subject: MTX-4571 MTCDT3AC: Add MTCPM v 0.2 --- io-module/mts-io.c | 3 ++- io-module/mts_io_module.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3