杰里之连接杰理蓝牙测试盒标志和后台切去蓝牙的使用】【篇】
log_printf(“get_remote_test_flag=0x%0x\n”,get_remote_test_flag());
if(get_remote_test_flag()){
no_background_suspend();
bt_task_sta = BT_WAITINT_INIT;
}else{
background_suspend();
bt_task_sta = BT_SUSPEND;
}
函数 extern bool get_remote_test_flag();返回值为 1 则是连接了杰理的测试盒,0 则没有连接杰理测试盒。