添加管控软件和相机的通讯
This commit is contained in:
@@ -329,3 +329,14 @@ bool CameraManager::applyWhiteBalanceOnce(CamIndex idx)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool CameraManager::whiteBalanceFinished(CamIndex idx, bool& finished)
|
||||
{
|
||||
finished=false;
|
||||
if(!m_connected[idx]||m_device[idx].IsNull())return false;
|
||||
try {
|
||||
const auto value=m_device[idx]->GetRemoteFeatureControl()->GetEnumFeature("BalanceWhiteAuto")->GetValue();
|
||||
finished=gxToQString(value)==QStringLiteral("Off");
|
||||
return true;
|
||||
}catch(CGalaxyException& e){emit errorOccurred(idx,QString("Read white balance state failed: %1").arg(e.what()));return false;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user