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;