From 24985129729715ee08cdc021b1d5e552c6b6b312 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 3 Dec 2017 22:10:56 +0100 Subject: [PATCH] lecroy-xstream: Keep acquiring infinitely if no frame limit is set --- src/hardware/lecroy-xstream/protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c index 5fa1b44a..1cbf036e 100644 --- a/src/hardware/lecroy-xstream/protocol.c +++ b/src/hardware/lecroy-xstream/protocol.c @@ -717,7 +717,8 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data) * number of frames, or continue reception by starting over at * the first enabled channel. */ - if (++devc->num_frames == devc->frame_limit) { + devc->num_frames++; + if (devc->frame_limit && (devc->num_frames == devc->frame_limit)) { sr_dev_acquisition_stop(sdi); } else { devc->current_channel = devc->enabled_channels;