| 
					
				 | 
			
			
				@@ -438,8 +438,8 @@ static void light_sleep_task(void *args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     Machine_info.wait_send_rssi_bat++;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     printf("唤醒: bat %d wait_send_rssi_bat = %d,\r\n",Machine_info.batt_precent,Machine_info.wait_send_rssi_bat);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if(Machine_info.wait_send_rssi_bat>(30*60/TIMER_WAKEUP_TIME_S))//30分钟发一次lora
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //if(Machine_info.wait_send_rssi_bat>10)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    // if(Machine_info.wait_send_rssi_bat>(30*60/TIMER_WAKEUP_TIME_S))//30分钟发一次lora
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(Machine_info.wait_send_rssi_bat>60)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ESP_LOGW(LOG_TAG,"30分钟发送数据"); 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         Machine_info.wait_send_rssi_bat = 0;
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -579,8 +579,15 @@ static void light_sleep_task(void *args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             case ESP_SLEEP_WAKEUP_ULP:
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              //wakeup_reason = "ulp";
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                iot_button_resume();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                is_sleep = true;//常按会进休眠,然后ulp唤醒,设置is_sleep = true,再次进入休眠
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                printf("ULP SLEEP WAKE UP\r\n");
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               printf("ULP SLEEP WAKE UP\r\n");
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // is_sleep = true;//常按会进休眠,然后ulp唤醒,设置is_sleep = true,再次进入休眠
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(Machine_info.paired && Machine_info.power_status )
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    printf("is_sleep = true\r\n");
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    vTaskDelay(2000/ portTICK_PERIOD_MS);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    is_sleep = true;//配对且开机,进入休眠
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              break;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             case ESP_SLEEP_WAKEUP_EXT0:
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 |