]> sigrok.org Git - libsigrok.git/commitdiff
fluke-dmm: Properly handle continuous mode
authorBert Vermeulen <redacted>
Mon, 24 Dec 2012 19:27:45 +0000 (20:27 +0100)
committerBert Vermeulen <redacted>
Mon, 24 Dec 2012 19:27:45 +0000 (20:27 +0100)
Same bug+fix as commit d55c89f523e74a2f629bb23e8fd9bf6db7e3758a

hardware/fluke-dmm/fluke.c

index 0d11a7c3b240e8e0cf9a2159edaec591ba696541..e5d174a325ca31760d55589a1631a48872dfa76c 100644 (file)
@@ -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;
        }