From 200131ec677479e25e34087ea276b21bcd33a824 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 11 May 2025 03:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E7=BD=91=E7=BB=9C=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=80=9A=E8=BF=87=E7=9B=B4=E6=8E=A5=E5=85=B3?= =?UTF-8?q?=E7=94=B5=E6=9D=A5=E5=85=B3=E9=97=AD=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index e3a4a25d..29f21085 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1738,7 +1738,10 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c std::this_thread::sleep_for(std::chrono::milliseconds(1000)); } - ShutdownEthernet(); + if (netCaptureResult == 0) + { + ShutdownEthernet(); + } ethernetPowerCtrl.reset(); XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power OFF");