1.关闭gps时首次启动也发一次gps
This commit is contained in:
		
							parent
							
								
									c1ef11a1cd
								
							
						
					
					
						commit
						be37d33bc1
					
				| 
						 | 
				
			
			@ -1829,7 +1829,8 @@ static SINT32 app_Register_Net_startup_mode(SF_FN_PARAM_S *pfnParam)
 | 
			
		|||
 | 
			
		||||
	s32ret = sf_get_utc();
 | 
			
		||||
 | 
			
		||||
	if ((SF_ON == pCustomerParam->GpsSwitch)) {
 | 
			
		||||
    if ((SF_ON == pCustomerParam->GpsSwitch) || (pCustomerParam->FristSendDailyAndGps)) 
 | 
			
		||||
    {
 | 
			
		||||
	   s32ret = open_gps(s32ret);
 | 
			
		||||
	}
 | 
			
		||||
	if (0 != sf_get_cq_signal()) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1867,7 +1868,8 @@ static SINT32 app_Register_Net_startup_mode(SF_FN_PARAM_S *pfnParam)
 | 
			
		|||
    set_at_parament();
 | 
			
		||||
    sf_USB_net_init();
 | 
			
		||||
 | 
			
		||||
    if ((SF_ON == pCustomerParam->GpsSwitch)) {
 | 
			
		||||
    if ((SF_ON == pCustomerParam->GpsSwitch) || (pCustomerParam->FristSendDailyAndGps)) 
 | 
			
		||||
    {
 | 
			
		||||
        const int KEEP_SERACHING_TIMEOUT_MS = 2000;
 | 
			
		||||
        const int KEEP_SERACHING_PERIOD_MS = 200;
 | 
			
		||||
        // keep_seraching_gps_location(KEEP_SERACHING_TIMEOUT_S);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user