|
|
|
@ -1699,10 +1699,14 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
|
}
|
|
|
|
|
else if (photoInfo.cameraType == CAM_TYPE_NET)
|
|
|
|
|
{
|
|
|
|
|
if (photoInfo.retries > 0)
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
|
|
|
}
|
|
|
|
|
if(mPhotoInfo.scheduleTime == 0)
|
|
|
|
|
powerCtrlPtr = std::shared_ptr<PowerControl>(new NetCameraPowerCtrl(mPhotoInfo.closeDelayTime));
|
|
|
|
|
else
|
|
|
|
|
powerCtrlPtr = std::shared_ptr<PowerControl>(new NetCameraPowerCtrl(2));
|
|
|
|
|
powerCtrlPtr = std::shared_ptr<PowerControl>(new NetCameraPowerCtrl(0));
|
|
|
|
|
}
|
|
|
|
|
else if (photoInfo.cameraType == CAM_TYPE_PLZ)
|
|
|
|
|
{
|
|
|
|
|