|
|
@ -1511,7 +1511,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_ERROR, "Ethernet Power ON");
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power ON");
|
|
|
|
std::shared_ptr<PowerControl> ethernetPowerCtrl = std::make_shared<EthernetPowerCtrl>(1);
|
|
|
|
std::shared_ptr<PowerControl> ethernetPowerCtrl = std::make_shared<EthernetPowerCtrl>(1);
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
SetStaticIp();
|
|
|
|
SetStaticIp();
|
|
|
@ -1622,6 +1622,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ethernetPowerCtrl.reset();
|
|
|
|
ethernetPowerCtrl.reset();
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power OFF");
|
|
|
|
|
|
|
|
|
|
|
|
cv::Mat rgb;
|
|
|
|
cv::Mat rgb;
|
|
|
|
if (netCaptureResult && !img.empty())
|
|
|
|
if (netCaptureResult && !img.empty())
|
|
|
|