蓝牙不开启待查
This commit is contained in:
@ -74,12 +74,7 @@ void send_sensor_data_task(void) {
|
||||
send_data_to_ble_client(&temp,5);
|
||||
}
|
||||
|
||||
void create_process(u16* pid, const char* name, void *priv, void (*func)(void *priv), u32 msec){
|
||||
xlog("Create Task: %s, pid=%d\n", name, *pid);
|
||||
if (*pid != 0) return;
|
||||
*pid = sys_timer_add(priv, func, msec);
|
||||
xlog("Task %s is created, pid=%d\n", name, *pid);
|
||||
}
|
||||
extern void create_process(u16* pid, const char* name, void *priv, void (*func)(void *priv), u32 msec);
|
||||
|
||||
void rcsp_adv_fill_mac_addr(u8 *mac_addr_buf) //by xtell
|
||||
{
|
||||
@ -88,15 +83,8 @@ void rcsp_adv_fill_mac_addr(u8 *mac_addr_buf) //by xtell
|
||||
|
||||
void xtell_task_create(void){
|
||||
|
||||
u8 mac_data[6];
|
||||
|
||||
soft_iic_init(0);
|
||||
extern u8 LIS2DH12_Config(void);
|
||||
LIS2DH12_Config();
|
||||
|
||||
rcsp_adv_fill_mac_addr(mac_data); //读取MAC地址
|
||||
xlog("xtell BT mac data:%x:%x:%x:%x:%x:%x",mac_data[0],mac_data[1],mac_data[2],mac_data[3],mac_data[4],mac_data[5]);
|
||||
|
||||
xlog("xtell_task_create\n");
|
||||
|
||||
|
||||
//开经典蓝牙
|
||||
|
||||
Reference in New Issue
Block a user