Commit e05c9f56 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

Consider Stream/Filewriter status when Camera is Armed in ext. trigger modes

parent 7e68b014
Pipeline #21526 failed with stages
in 1 minute and 15 seconds
......@@ -171,11 +171,17 @@ void Interface::getStatus(StatusType& status)
Eiger_status = m_cam.getStatus();
switch (Eiger_status)
{
case Camera::Armed:
case Camera::Ready:
{
bool mult_trig_in_progress = false;
TrigMode trig_mode;
m_cam.getTrigMode(trig_mode);
if ((Eiger_status == Camera::Armed) &&
((trig_mode == IntTrig) || (trig_mode == IntTrigMult))) {
status.set(HwInterface::StatusType::Ready);
break;
}
bool mult_trig_in_progress = false;
if (trig_mode == IntTrigMult) {
int tot_nb_frames, nb_trig_frames;
m_cam.getNbFrames(tot_nb_frames);
......@@ -208,10 +214,6 @@ void Interface::getStatus(StatusType& status)
status.set(HwInterface::StatusType::Exposure);
break;
case Camera::Armed:
status.set(HwInterface::StatusType::Ready);
break;
case Camera::Fault:
status.set(HwInterface::StatusType::Fault);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment