lecroy-xstream: Keep acquiring infinitely if no frame limit is set

This commit is contained in:
Soeren Apel 2017-12-03 22:10:56 +01:00 committed by Uwe Hermann
parent d3f14af7ed
commit 2498512972
1 changed files with 2 additions and 1 deletions

View File

@ -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;