Fixed regression with previous commit where it didn't work for long scan
Fixed regression with previous commit where it didn't work for long scan

dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm