|
|
|
@ -1610,7 +1610,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power ON");
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<PowerControl> ethernetPowerCtrl = std::make_shared<EthernetPowerCtrl>(localPhotoInfo.closeDelayTime);
|
|
|
|
|
|
|
|
|
|
uint64_t startTime = GetMicroTimeStamp();
|
|
|
|
@ -1620,8 +1620,10 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(5000 - ethDuration));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
net_handle_t netHandle = GetEthnetHandle();
|
|
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power ON Init Time=%u NetHandle=%lld", (uint32_t)ethDuration, netHandle);
|
|
|
|
|
|
|
|
|
|
std::string ip = GetIpStr(localPhotoInfo.ip);
|
|
|
|
|
std::unique_ptr<VendorCtrl> vendorCtrl(MakeVendorCtrl(localPhotoInfo.vendor, localPhotoInfo.channel, ip, localPhotoInfo.userName, localPhotoInfo.password, netHandle, false));
|
|
|
|
|
|
|
|
|
|