zhunk 7 months ago
parent
commit
217d5e911c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Application_CBD/applications/hmi.c

+ 8 - 0
Application_CBD/applications/hmi.c

@@ -604,12 +604,16 @@ static void HMI_Decode(void)
     }
     //拍照
     else if(strstr(rx_buffer,"putTest.switchPhoto=1")!=NULL) {
+#if 1
         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
+        Hk_Take_io();
+#endif
     }
     else if(strstr(rx_buffer,"putTest.switchPhoto=0")!=NULL) {
         device_status.photo_ws = 0;
@@ -617,12 +621,16 @@ static void HMI_Decode(void)
         LOG_I("停止拍照!");
     }
     else if (strstr(rx_buffer,"putTest.switchPic=1")!=NULL) {
+#if 1
         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
+        Hk_Take_io();
+#endif
     }
     //转盘复位
     else if (strstr(rx_buffer,"turn_init")!=NULL) {