瀏覽代碼

增加拍照

zhunk 7 月之前
父節點
當前提交
d6b5fbfb2c
共有 2 個文件被更改,包括 5 次插入 和 0 次删除
  1. 5 0
      Application_CBD/applications/hmi.c
  2. 二進制
      Application_CBD/makefile.targets

+ 5 - 0
Application_CBD/applications/hmi.c

@@ -611,6 +611,11 @@ static void HMI_Decode(void)
         DTU_Write("%s",photo);
         rt_free(photo);
     }
+    else if(strstr(rx_buffer,"putTest.switchPhoto=0")!=NULL) {
+        device_status.photo_ws = 0;
+        rt_thread_delay(500);
+        LOG_I("停止拍照!");
+    }
     else if (strstr(rx_buffer,"putTest.switchPic=1")!=NULL) {
         device_status.photo_ws = 0;
         rt_thread_delay(500);

二進制
Application_CBD/makefile.targets