From 2f1e5c7cb7ca72b6ebde7015191486ebfc0ffc70 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 24 Dec 2012 20:27:45 +0100 Subject: [PATCH] fluke-dmm: Properly handle continuous mode Same bug+fix as commit d55c89f523e74a2f629bb23e8fd9bf6db7e3758a --- hardware/fluke-dmm/fluke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }