diff --git a/DeviceAdapters/DahengGalaxy/ClassGalaxy.cpp b/DeviceAdapters/DahengGalaxy/ClassGalaxy.cpp index 55414a544..e40f21f3d 100644 --- a/DeviceAdapters/DahengGalaxy/ClassGalaxy.cpp +++ b/DeviceAdapters/DahengGalaxy/ClassGalaxy.cpp @@ -836,10 +836,9 @@ int ClassGalaxy::StartSequenceAcquisition(double /* interval_ms */) { } return DEVICE_OK; } + int ClassGalaxy::StopSequenceAcquisition() { - - if (m_objStreamFeatureControlPtr->GetBoolFeature("StreamIsGrabbing")->GetValue()) { m_objFeatureControlPtr->GetCommandFeature("AcquisitionStop")->Execute(); @@ -852,6 +851,11 @@ int ClassGalaxy::StopSequenceAcquisition() return DEVICE_OK; } +bool ClassGalaxy::IsCapturing() +{ + return m_objStreamFeatureControlPtr->GetBoolFeature("StreamIsGrabbing")->GetValue() ? true : false; +} + int ClassGalaxy::PrepareSequenceAcqusition() { AddToLog("PrepareSequenceAcqusition"); diff --git a/DeviceAdapters/DahengGalaxy/ClassGalaxy.h b/DeviceAdapters/DahengGalaxy/ClassGalaxy.h index d9e614883..5ebdebcbe 100644 --- a/DeviceAdapters/DahengGalaxy/ClassGalaxy.h +++ b/DeviceAdapters/DahengGalaxy/ClassGalaxy.h @@ -104,7 +104,7 @@ class MODULE_API ClassGalaxy : public CCameraBase //* Flag to indicate whether Sequence Acquisition is currently running. //* Return true when Sequence acquisition is active, false otherwise //*/ - //bool IsCapturing(); + bool IsCapturing(); ////Genicam Callback ////void ResultingFramerateCallback(GenApi::INode* pNode);