Jelajahi Sumber

增加拍照

zhunk 7 bulan lalu
induk
melakukan
d6b5fbfb2c
2 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      Application_CBD/applications/hmi.c
  2. TEMPAT SAMPAH
      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);

TEMPAT SAMPAH
Application_CBD/makefile.targets