Commit a24b7144 authored by Laurent Claustre's avatar Laurent Claustre
Browse files

in prepareAcq() now check max nb frames when trigger mode is IntTrig

parent 42ec5794
Pipeline #50053 failed with stages
in 8 minutes
......@@ -354,9 +354,6 @@ void SyncCtrlObj::getLatTime(double& lat_time)
void SyncCtrlObj::setNbHwFrames(int nb_frames)
{
DEB_MEMBER_FUNCT();
if (nb_frames > 65535)
THROW_HW_ERROR(InvalidValue) << "Maximum number of frames is 65535";
m_nb_frames = nb_frames;
}
......@@ -410,6 +407,10 @@ void SyncCtrlObj::prepareAcq()
// This is the only trigger mode which can run the for ever, For the other modes we must
// workaround the number of frames to the maximum value than camserver can accept, this
// is risky !!
if (trig_mode == IntTrig && m_nb_frames > 65535)
THROW_HW_ERROR(InvalidValue) << "In IntTrig trigger mode, maximum number of frames is 65535";
if (trig_mode == IntTrigMult)
nb_frames = 1;
else if (m_nb_frames == 0)
......
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