From: Bert Vermeulen Date: Mon, 24 Dec 2012 19:27:45 +0000 (+0100) Subject: fluke-dmm: Properly handle continuous mode X-Git-Tag: dsupstream~414 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2f1e5c7cb7ca72b6ebde7015191486ebfc0ffc70;p=libsigrok.git fluke-dmm: Properly handle continuous mode Same bug+fix as commit d55c89f523e74a2f629bb23e8fd9bf6db7e3758a --- diff --git a/hardware/fluke-dmm/fluke.c b/hardware/fluke-dmm/fluke.c index 0d11a7c3..e5d174a3 100644 --- a/hardware/fluke-dmm/fluke.c +++ b/hardware/fluke-dmm/fluke.c @@ -509,7 +509,7 @@ SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data) } } - if (devc->num_samples >= devc->limit_samples) { + if (devc->limit_samples && devc->num_samples >= devc->limit_samples) { sdi->driver->dev_acquisition_stop(sdi, cb_data); return TRUE; }