杰里之发射 连接慢篇

u8 to_auto_search_device_cnt =10;

	break;
    case MSG_HALF_SECOND:
		if(half_cnt++ > 4){
			half_cnt = 0;
        	puts("H");

		}
			set_emitter_aux_media(1);
		dac_mute(0,1);



		#if 1

if(get_emitter_role() == BD_ROLE_HOST)//此处为发射主机上电搜索
{
if(to_auto_search_device_cnt)to_auto_search_device_cnt–;
if(to_auto_search_device_cnt5)
{ user_send_cmd_prepare(USER_CTRL_START_CONNEC_VIA_ADDR_MANUALLY,0,NULL);}
if(to_auto_search_device_cnt
1)
{
led_fre_set(10,0);
user_send_cmd_prepare(USER_CTRL_SEARCH_DEVICE,0,NULL);//这里一直搜索
}
}

#endif

你可能感兴趣的:(杰里之发射 连接慢篇)