From 128a0a00031e39069a178482baa3af7f1753c5fe Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 11 Jan 2025 19:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E7=94=B5=E6=BA=90=E6=8E=A7=E5=88=B6=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index b1b850e4..70ea89ce 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1699,10 +1699,14 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector< } else if (photoInfo.cameraType == CAM_TYPE_NET) { + if (photoInfo.retries > 0) + { + std::this_thread::sleep_for(std::chrono::seconds(1)); + } if(mPhotoInfo.scheduleTime == 0) powerCtrlPtr = std::shared_ptr(new NetCameraPowerCtrl(mPhotoInfo.closeDelayTime)); else - powerCtrlPtr = std::shared_ptr(new NetCameraPowerCtrl(2)); + powerCtrlPtr = std::shared_ptr(new NetCameraPowerCtrl(0)); } else if (photoInfo.cameraType == CAM_TYPE_PLZ) {