Commit c71b6b80 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by bliss administrator

Fix Interface::getStatus for ext trigger/gate modes

parent be21db57
Pipeline #26656 passed with stages
in 5 minutes and 21 seconds
......@@ -170,17 +170,11 @@ 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);
......@@ -213,6 +207,10 @@ 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