|
@@ -440,7 +440,7 @@ static void light_sleep_task(void *args)
|
|
|
|
|
|
if(Machine_info.wait_send_rssi_bat>(30*60/TIMER_WAKEUP_TIME_S))//30分钟发一次lora
|
|
|
{
|
|
|
- printf("already send rssi and bat\r\n");
|
|
|
+ ESP_LOGW(LOG_TAG,"30分钟发送数据");
|
|
|
Machine_info.wait_send_rssi_bat = 0;
|
|
|
f_send_get_chart_data();
|
|
|
f_send_lora_rssi(Machine_info.rssi);
|
|
@@ -577,8 +577,9 @@ static void light_sleep_task(void *args)
|
|
|
{
|
|
|
iot_button_resume();
|
|
|
}
|
|
|
- else if(Machine_info.paired && Machine_info.power_status)
|
|
|
+ if(Machine_info.paired && Machine_info.power_status )
|
|
|
{
|
|
|
+ vTaskDelay(1000/ portTICK_PERIOD_MS);
|
|
|
is_sleep = true;//配对且开机,进入休眠
|
|
|
}
|
|
|
|