From 61a43a7f05ef55e44fa3f3d582bbc8bb3fdb0741 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 13 Jun 2024 13:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=87=AA=E5=8A=A8=E6=8B=8D?= =?UTF-8?q?=E7=85=A7=E7=9A=84=E8=B0=83=E8=AF=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 2d047620..649701e8 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -832,7 +832,7 @@ float CPhoneDevice::QueryBattaryVoltage(int timesForAvg, bool* isCharging) if (isCharging != NULL) { - *isCharging = chargingBusVoltage > 10.0; + *isCharging = chargingBusVoltage > DEFAULT_WARNING_CHARGING_BUS_VOL; } int matched = 0; @@ -1458,6 +1458,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) NdkCamera::CAPTURE_RESULT captureResult = mCamera->getCaptureResult(); +#if 0 if (captureResult.avgY < 25 && mPhotoInfo.autoExposure != 0) { // Take another photo @@ -1508,6 +1509,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) t.detach(); } +#endif // 0 char extimeunit[4] = { 0 }; unsigned int extime = (captureResult.exposureTime >= 1000000) ? ((unsigned int)(captureResult.exposureTime / 1000000)) : ((unsigned int)(captureResult.exposureTime / 1000));