projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39bcacf
)
优化cywee chipinfo转mac密钥激活(补交)
947/3
947/head
951/target/1
author
penglei
<1624952103@qq.com>
Thu, 12 Sep 2024 10:39:53 +0000
(18:39 +0800)
committer
penglei
<1624952103@qq.com>
Thu, 12 Sep 2024 10:39:53 +0000
(18:39 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utils/custom_utils.c
b/code/sdk/drivers/peripheral/utils/custom_utils.c
index
91e1b76
..
483161c
100644
(file)
--- a/
code/sdk/drivers/peripheral/utils/custom_utils.c
+++ b/
code/sdk/drivers/peripheral/utils/custom_utils.c
@@
-3391,7
+3391,7
@@
errcode_t change_mac_from_chipinfo_map(void)
{
if(strcmp(uid_str, g_chipinfo_map[i].uid) == 0)
{
- if((bd_addr[
4] << 8 | bd_addr[5]) == g_chipinfo_map[i].mac
)
+ if((bd_addr[
3] == 0x01 && (bd_addr[4] << 8 | bd_addr[5]) == g_chipinfo_map[i].mac)
)
return ERRCODE_SUCC;
uint16_t btmac2 = g_chipinfo_map[i].mac;