mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
MDC联系人
This commit is contained in:
parent
b9edeef92c
commit
60528889ed
2 changed files with 15 additions and 12 deletions
|
@ -20,7 +20,10 @@
|
||||||
</configurations>
|
</configurations>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="MDC联系人" />
|
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="MDC联系人">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/mdc1200.c" beforeDir="false" afterPath="$PROJECT_DIR$/app/mdc1200.c" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
@ -184,14 +187,7 @@
|
||||||
<workItem from="1702006730071" duration="3144000" />
|
<workItem from="1702006730071" duration="3144000" />
|
||||||
<workItem from="1702024305901" duration="2385000" />
|
<workItem from="1702024305901" duration="2385000" />
|
||||||
<workItem from="1702049513969" duration="28027000" />
|
<workItem from="1702049513969" duration="28027000" />
|
||||||
<workItem from="1702119088204" duration="10553000" />
|
<workItem from="1702119088204" duration="12440000" />
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00033" summary="MDC RX">
|
|
||||||
<created>1701682811016</created>
|
|
||||||
<option name="number" value="00033" />
|
|
||||||
<option name="presentableId" value="LOCAL-00033" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1701682811016</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00034" summary="MDC RX">
|
<task id="LOCAL-00034" summary="MDC RX">
|
||||||
<created>1701685151218</created>
|
<created>1701685151218</created>
|
||||||
|
@ -529,7 +525,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1702137830894</updated>
|
<updated>1702137830894</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="82" />
|
<task id="LOCAL-00082" summary="MDC联系人">
|
||||||
|
<created>1702137966114</created>
|
||||||
|
<option name="number" value="00082" />
|
||||||
|
<option name="presentableId" value="LOCAL-00082" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1702137966114</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="83" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
|
|
@ -546,14 +546,14 @@ bool mdc1200_contact_find(uint16_t mdc_id, char *contact) {
|
||||||
for (uint8_t i = 0; i < contact_num; i++) {
|
for (uint8_t i = 0; i < contact_num; i++) {
|
||||||
uint8_t read_once[16]={0};
|
uint8_t read_once[16]={0};
|
||||||
if ((i & 3) == 0 && i) add++;
|
if ((i & 3) == 0 && i) add++;
|
||||||
EEPROM_ReadBuffer(MDC_ADD[add] + i * 16, read_once, 16);
|
EEPROM_ReadBuffer(MDC_ADD[add] +((i&3) <<4), read_once, 16);
|
||||||
if (mdc_id == (uint16_t) (read_once[1] | (read_once[0] << 8))) {
|
if (mdc_id == (uint16_t) (read_once[1] | (read_once[0] << 8))) {
|
||||||
for (int j = 0; j < 14; ++j) {
|
for (int j = 0; j < 14; ++j) {
|
||||||
if(read_once[2+j]<' '||read_once[2+j]>'~')
|
if(read_once[2+j]<' '||read_once[2+j]>'~')
|
||||||
return false;
|
return false;
|
||||||
memcpy(contact,read_once+2,14);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memcpy(contact,read_once+2,14);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue