From fd88feeacd5e7e62bef708790d5131a5e328123f Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 8 Mar 2025 15:16:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=AE=BE=E7=BD=AE=E9=9D=99=E6=80=81IP?= 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, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 6cf2c8a8..d312fb8d 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1570,7 +1570,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c XYLOG(XYLOG_SEVERITY_INFO, "Ethernet is Available CH=%u PR=%X PHOTOID=%u", (uint32_t)localPhotoInfo.channel, (uint32_t)localPhotoInfo.preset, localPhotoInfo.photoId); } - SetStaticIp(); + // SetStaticIp(); std::this_thread::sleep_for(std::chrono::milliseconds(256)); NET_PHOTO_INFO netPhotoInfo = { netHandle, 0 }; @@ -1741,7 +1741,7 @@ bool CPhoneDevice::TakeVideoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c XYLOG(XYLOG_SEVERITY_INFO, "Ethernet is Available CH=%u PR=%X PHOTOID=%u", (uint32_t)localPhotoInfo.channel, (uint32_t)localPhotoInfo.preset, localPhotoInfo.photoId); } - SetStaticIp(); + // SetStaticIp(); std::this_thread::sleep_for(std::chrono::milliseconds(256)); NET_PHOTO_INFO netPhotoInfo = { netHandle, 0 }; @@ -4118,6 +4118,7 @@ net_handle_t CPhoneDevice::GetEthnetHandle() const void CPhoneDevice::SetStaticIp(const std::string& iface, const std::string& ip, const std::string& netmask, const std::string& gateway) { + JNIEnv* env = NULL; jboolean ret = JNI_FALSE; bool didAttachThread = false;