fluke-dmm: Properly handle continuous mode

Same bug+fix as commit d55c89f523
This commit is contained in:
Bert Vermeulen 2012-12-24 20:27:45 +01:00
parent f1f7e62d6d
commit 2f1e5c7cb7
1 changed files with 1 additions and 1 deletions

View 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;
}