修复异常requestTemplate时未保护的bug

hdrplus
Matthew 11 months ago
parent 33b62913a8
commit 2acbfcaed2

@ -786,12 +786,12 @@ bool CPhoneDevice::Reboot(int resetType)
GpioControl::reboot();
});
t.detach();
return true;
}
else
{
long timeout = 1000;
RestartApp(resetType, timeout);
}
return true;
}
@ -1178,6 +1178,10 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
params.zoom = mPhotoInfo.zoom;
params.zoomRatio = mPhotoInfo.zoomRatio;
params.requestTemplate = mPhotoInfo.requestTemplate;
if (params.requestTemplate <= 0 || params.requestTemplate > 5)
{
params.requestTemplate = 2;
}
if (photoInfo.ldrEnabled)
{

Loading…
Cancel
Save