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;