This commit is contained in:
lmx
2025-12-02 19:13:01 +08:00
parent f63092fe87
commit 2bc443584c
16 changed files with 1793 additions and 820 deletions

View File

@ -203,8 +203,8 @@ void cfg_file_parse(u8 idx)
} else if (ret >= LOCAL_NAME_LEN) {
memset(bt_cfg.edr_name, 0x00, LOCAL_NAME_LEN);
// memcpy(bt_cfg.edr_name, tmp, LOCAL_NAME_LEN);
extern char xt_ble_new_name[9];
memcpy(bt_cfg.edr_name, xt_ble_new_name, LOCAL_NAME_LEN);
// extern char xt_ble_new_name[9];
// memcpy(bt_cfg.edr_name, xt_ble_new_name, LOCAL_NAME_LEN);
bt_cfg.edr_name[LOCAL_NAME_LEN - 1] = 0;
} else {
memset(bt_cfg.edr_name, 0x00, LOCAL_NAME_LEN);