|
|
@@ -442,12 +442,16 @@ static void HMI_Decode(void)
|
|
|
}
|
|
|
//拍照
|
|
|
else if(strstr(rx_buffer,"putTest.switchPhoto=1")!=NULL) {
|
|
|
+ device_status.photo_ws = 0;
|
|
|
+ rt_thread_delay(500);
|
|
|
device_status.photo_ws = 1;
|
|
|
char *photo = makeJson_Warn("takephoto","control");
|
|
|
DTU_Write("%s",photo);
|
|
|
rt_free(photo);
|
|
|
}
|
|
|
else if (strstr(rx_buffer,"putTest.switchPic=1")!=NULL) {
|
|
|
+ device_status.photo_ws = 0;
|
|
|
+ rt_thread_delay(500);
|
|
|
device_status.photo_ws = 1;
|
|
|
char *photo = makeJson_Warn("takephoto","control");
|
|
|
DTU_Write("%s",photo);
|
|
|
@@ -1454,7 +1458,6 @@ static void HMI_Decode(void)
|
|
|
//入口函数-电机控制及
|
|
|
static void Ctr_Mortor_entry(void* parameter)
|
|
|
{
|
|
|
- rt_int16_t motor_current = 0; //
|
|
|
rt_uint16_t num_up_open = 200; //20s
|
|
|
rt_uint16_t num_up_close = 200; //
|
|
|
rt_uint16_t num_down_open = 200; //
|
|
|
@@ -1606,7 +1609,7 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
if(photo_led_sec==900)
|
|
|
ctr_led(ON);
|
|
|
//打开补光灯
|
|
|
- if(photo_led_sec==800)
|
|
|
+ if(photo_led_sec==880)
|
|
|
{
|
|
|
LOG_I("测试拍照!");
|
|
|
#if 1
|