定时拍照不会延时关闭摄像机电源

N938
XI.CHEN 6 months ago
parent bf9ee3aea8
commit c410e1e6a9

@ -1811,7 +1811,10 @@ 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");
pThis->ClosePTZSensors(localPhotoInfo.closeDelayTime);
if(localPhotoInfo.scheduleTime == 0)
pThis->ClosePTZSensors(localPhotoInfo.closeDelayTime);
else
pThis->ClosePTZSensors(2);
GpioControl::setCam3V3Enable(false, localPhotoInfo.closeDelayTime);
time_t takingTime = ts;

Loading…
Cancel
Save