From b9edeef92c97f54c1e08717ab6894c9d5bf0dd6e Mon Sep 17 00:00:00 2001 From: wu58430 Date: Sun, 10 Dec 2023 00:06:04 +0800 Subject: [PATCH] =?UTF-8?q?MDC=E8=81=94=E7=B3=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 39 ++++++++++++--------------------------- app/mdc1200.c | 2 +- 2 files changed, 13 insertions(+), 28 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7f0b418..20efd53 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -20,22 +20,7 @@ - - - - - - - - - - - - - - - - + @@ -568,7 +553,6 @@ - @@ -593,6 +577,7 @@ - \ No newline at end of file diff --git a/app/mdc1200.c b/app/mdc1200.c index 295ef03..33d570d 100644 --- a/app/mdc1200.c +++ b/app/mdc1200.c @@ -547,7 +547,7 @@ bool mdc1200_contact_find(uint16_t mdc_id, char *contact) { uint8_t read_once[16]={0}; if ((i & 3) == 0 && i) add++; EEPROM_ReadBuffer(MDC_ADD[add] + i * 16, read_once, 16); - if (mdc_id == (uint16_t) (read_once[0] | (read_once[1] << 8))) { + if (mdc_id == (uint16_t) (read_once[1] | (read_once[0] << 8))) { for (int j = 0; j < 14; ++j) { if(read_once[2+j]<' '||read_once[2+j]>'~') return false;