projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ea63c
)
Don't attempt to set SR_CONF_LIMIT_SAMPLES when it's not supported
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 26 Feb 2014 21:45:30 +0000
(22:45 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 1 Mar 2014 11:15:02 +0000
(11:15 +0000)
pv/toolbars/samplingbar.cpp
patch
|
blob
|
history
diff --git
a/pv/toolbars/samplingbar.cpp
b/pv/toolbars/samplingbar.cpp
index 78f6e1cef53a7929bd87b86914a5404ca53eabef..be29e74bb534643183fd739e5d1785f63f974e22 100644
(file)
--- a/
pv/toolbars/samplingbar.cpp
+++ b/
pv/toolbars/samplingbar.cpp
@@
-316,7
+316,8
@@
void SamplingBar::commit_sample_count()
// Set the sample count
assert(!_updating_sample_count);
_updating_sample_count = true;
- if (!dev_inst->set_config(NULL, SR_CONF_LIMIT_SAMPLES,
+ if (_sample_count_supported &&
+ !dev_inst->set_config(NULL, SR_CONF_LIMIT_SAMPLES,
g_variant_new_uint64(sample_count))) {
qDebug() << "Failed to configure sample count.";
return;