|
|
@@ -1783,6 +1783,9 @@ void ResetInit(void)
|
|
|
rt_thread_delay(1000);
|
|
|
}
|
|
|
}
|
|
|
+ #if DZ_260519 == 1
|
|
|
+ device_status.clear_status = 2;
|
|
|
+ #endif
|
|
|
#if LAMP_EN == 0
|
|
|
//排虫
|
|
|
if(device_status.handle_bugger==0){
|
|
|
@@ -2419,10 +2422,12 @@ void WorkTask(void)
|
|
|
{
|
|
|
static int clt_time = 0; //收集时间差秒数
|
|
|
static int heat_time = 0;
|
|
|
+ static uint8_t workloop = 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)
|
|
|
{
|
|
|
+ workloop++;
|
|
|
device_status.work_done = 0;
|
|
|
if(clt_time==0)
|
|
|
{
|
|
|
@@ -2627,16 +2632,13 @@ void WorkTask(void)
|
|
|
//震动
|
|
|
ctr_shake(ON, device_status.shake_sec);
|
|
|
device_status.photo_ws = 1;
|
|
|
-// //补光&&拍照
|
|
|
-// LOG_I("拍照!!!");
|
|
|
-// HMI_WRITE("workSta.g0.txt=\"拍照!\"");
|
|
|
-// ctr_led(ON);
|
|
|
-// HK_TakePhoto();
|
|
|
-// //清扫
|
|
|
-// device_status.clear_status=1;
|
|
|
- //清扫失效则使用震动
|
|
|
- //ctr_shake(ON, 100);
|
|
|
}
|
|
|
+#if DZ_260519 == 1
|
|
|
+ if(workloop==3){
|
|
|
+ workloop = 0;
|
|
|
+ device_status.clear_status = 2;
|
|
|
+ }
|
|
|
+#endif
|
|
|
}
|
|
|
}
|
|
|
if(device_status.bat_status == 1 || device_status.temp_status == 1 || device_status.rain_status==1 || device_status.ds==0)
|