修改定时拍照不延时

rtmpsuck
XI.CHEN 6 months ago
parent ce4f7358b4
commit 816881fd89

@ -1811,11 +1811,15 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
CameraPhotoCmd(ts, localPhotoInfo.channel, 0, localPhotoInfo.resolution, localPhotoInfo.preset, param.serfile, param.baud, param.addr);
XYLOG(XYLOG_SEVERITY_INFO, "Taking photo over");
if(localPhotoInfo.scheduleTime == 0)
if(localPhotoInfo.scheduleTime == 0) {
pThis->ClosePTZSensors(localPhotoInfo.closeDelayTime);
else
GpioControl::setCam3V3Enable(false, localPhotoInfo.closeDelayTime);
}
else {
pThis->ClosePTZSensors(2);
GpioControl::setCam3V3Enable(false, localPhotoInfo.closeDelayTime);
GpioControl::setCam3V3Enable(false, 2);
}
time_t takingTime = ts;
if (localPhotoInfo.remedy != 0)

Loading…
Cancel
Save