启动阈值调整

This commit is contained in:
lmx
2025-11-12 13:57:59 +08:00
parent 58ad14691e
commit c88cb70bb1
32 changed files with 153681 additions and 153490 deletions

View File

@ -1425,9 +1425,25 @@ void ble_module_enable(u8 en)
#if(TCFG_CHARGE_BOX_ENABLE)
extern u8 get_chgbox_lid_status(void);
#endif
void user_ble_gap_device_set(char* name){ //xtell-set
if(strlen(name) < BT_NAME_LEN_MAX){
strcpy(gap_device_name,name);
//刷新广播
bt_ble_adv_enable(0);
make_set_adv_data();
make_set_rsp_data();
bt_ble_adv_enable(1);
}
}
void bt_ble_init(void)
{
log_info("***** ble_init******\n");
//xtell-set
// extern char xt_ble_new_name[9];
// user_ble_gap_device_set(xt_ble_new_name);
gap_device_name = bt_get_local_name();
gap_device_name_len = strlen(gap_device_name);