break the 65536 max frames limitiation
for detector with firmware >=3 use the infinite mode (0 frames) when more than 65536 frames are requested.
for detector with firmware >=3 use the infinite mode (0 frames) when more than 65536 frames are requested.