From 7cc3de572bacd0810b78d6dc75e639353c662e55 Mon Sep 17 00:00:00 2001 From: "XI.CHEN" <2311041011@qq.com> Date: Thu, 19 Dec 2024 19:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E6=91=84=E5=83=8F=E6=9C=BA?= =?UTF-8?q?=E8=A7=84=E7=BA=A6=E4=B8=8A=E4=BC=A0=E6=97=B6=E9=97=B4=E4=B8=8E?= =?UTF-8?q?=E6=B0=B4=E5=8D=B0=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 97394a6f..1e3ce7c9 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1639,6 +1639,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector< std::thread t([localPhotoInfo, path, pThis, osds, powerCtrlPtr]() mutable { // AutoEnv autoEnv(pThis->m_vm); + time_t ts = time(NULL); uint32_t waitTime = localPhotoInfo.selfTestingTime; waitTime = (waitTime!= 0) ? (waitTime * 1024) : 10240; std::this_thread::sleep_for(std::chrono::milliseconds(waitTime)); @@ -1740,7 +1741,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector< if (netCaptureResult) { - time_t takingTime = time(NULL); + time_t takingTime = ts; if (localPhotoInfo.remedy != 0) { if ((takingTime - localPhotoInfo.scheduleTime) > 30)