From 07303629c413fea820f4b1282f21461a5ff86511 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 5 Jul 2024 10:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E7=85=A7=E7=BB=93=E6=9D=9F=E5=90=8E?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=94=B5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/MicroPhoto.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/cpp/MicroPhoto.cpp b/app/src/main/cpp/MicroPhoto.cpp index a19df96c..0b31ffef 100644 --- a/app/src/main/cpp/MicroPhoto.cpp +++ b/app/src/main/cpp/MicroPhoto.cpp @@ -415,6 +415,12 @@ Java_com_xypower_mpapp_MicroPhotoService_takePhoto( env->ReleaseStringUTFChars(path, pathStr); + device->TurnOffCameraPower(NULL); + if (photoInfo.usbCamera) + { + device->TurnOffOtg(NULL); + } + return reinterpret_cast(device); }