diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 48812724..c7fa2907 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1699,9 +1699,9 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector< time_t ts = time(NULL); if(!GetPTZSensorsStatus() && !GetCameraStatus()) { - OpenPTZSensors(120); + OpenPTZSensors(photoInfo.selfTestingTime); } - CameraPhotoCmd(ts, photoInfo.channel, 0, 6, 0); + CameraPhotoCmd(ts, photoInfo.channel, 0, photoInfo.resolution, 0); res = TakePTZPhotoCb(3, photoInfo); } else if (mPhotoInfo.usingSysCamera == 1)