|
|
@@ -945,10 +945,11 @@ void WorkTask_BZYV2(void)
|
|
|
/* 入口函数-工作状态检测 */
|
|
|
static void Work_status_thread_entry(void *parameter)
|
|
|
{
|
|
|
+ static uint32_t takephoto_cnt = 0;
|
|
|
while(1)
|
|
|
{
|
|
|
-
|
|
|
- if(device_status.ds==0||device_status.temp_status==1){
|
|
|
+ if(device_status.ds==0||
|
|
|
+ device_status.temp_status==1){
|
|
|
device_status.work_status = 0;
|
|
|
rt_thread_delay(5000);
|
|
|
continue;
|
|
|
@@ -981,12 +982,23 @@ static void Work_status_thread_entry(void *parameter)
|
|
|
rt_thread_delay(1000);
|
|
|
}
|
|
|
device_status.work_status = 0;
|
|
|
+
|
|
|
+ if(device_status.autotakepic==2){
|
|
|
+ takephoto_cnt++;
|
|
|
+ }else{
|
|
|
+ takephoto_cnt=0;
|
|
|
+ }
|
|
|
+ if(takephoto_cnt==3600){
|
|
|
+ device_status.autotakepic = 0;
|
|
|
+ takephoto_cnt = 0;
|
|
|
+ }
|
|
|
//如果当前时间大于
|
|
|
if(device_status.work_done!=0)
|
|
|
{
|
|
|
rt_thread_delay(1000*30);
|
|
|
device_status.work_done = 0;
|
|
|
}
|
|
|
+
|
|
|
rt_thread_delay(1000);
|
|
|
}
|
|
|
}
|