|
|
@@ -1602,7 +1602,11 @@ void WorkTask(void)
|
|
|
static int heat_time = 0;
|
|
|
LOG_I("工作状态:%d",device_status.work_status);
|
|
|
LOG_I("开关机状态:%d",device_status.ds);
|
|
|
- while(device_status.work_status==1&&device_status.temp_status==0&&device_status.bat_status==0&&device_status.rain_status==0&&device_status.ds==1&&device_status.clear_status==0)
|
|
|
+ while(device_status.clear_status==1){
|
|
|
+ LOG_I("等待清扫执行完成....");
|
|
|
+ rt_thread_delay(1000);
|
|
|
+ }
|
|
|
+ while(device_status.work_status==1&&device_status.temp_status==0&&device_status.bat_status==0&&device_status.rain_status==0&&device_status.ds==1)
|
|
|
{
|
|
|
device_status.work_done = 0;
|
|
|
if(clt_time==0)
|
|
|
@@ -1952,7 +1956,6 @@ static void Control_Check_thread_entry(void *parameter)
|
|
|
if(device_status.update_flag==1) break;
|
|
|
if(device_status.work_status==1&&device_status.heat_sw==1)
|
|
|
{
|
|
|
-
|
|
|
calorstat(device_status.heattime*60);
|
|
|
rt_thread_delay(10000);
|
|
|
}
|