Przeglądaj źródła

远程拍照不执行清扫

zhunk 3 tygodni temu
rodzic
commit
2364fd0331
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Application_cbd_apm32f1/applications/dtu_uart2.c

+ 2 - 0
Application_cbd_apm32f1/applications/dtu_uart2.c

@@ -2703,6 +2703,7 @@ int parseDtu(char *json_string)
                 rt_free(takephotojson);
                 #else
                 device_status.photo_ws=1;
+                device_status.test_flag = 1;
                 char *photo = makeJson_Warn("takephoto","control");
                 DTU_Write("%s",photo);
                 rt_free(photo);
@@ -2736,6 +2737,7 @@ int parseDtu(char *json_string)
                   {
                       //HK_TakePhoto();
                       device_status.photo_ws = 1;
+                      device_status.test_flag = 1;
                       char *photo = makeJson_Warn("takephoto","control");
                       DTU_Write("%s",photo);
                       rt_free(photo);