]> sigrok.org Git - pulseview.git/commitdiff
device.cpp: Add SR_CONF_AVG_SAMPLES.
authorUwe Hermann <redacted>
Wed, 5 Sep 2018 19:46:11 +0000 (21:46 +0200)
committerUwe Hermann <redacted>
Wed, 5 Sep 2018 22:25:00 +0000 (00:25 +0200)
pv/binding/device.cpp

index 993261330b479b9f4d9a5451f5ee9471c22006ee..07d8ccc05249ffa3bed1be1f923fa15e3c3ef962 100644 (file)
@@ -129,6 +129,10 @@ Device::Device(shared_ptr<sigrok::Configurable> configurable) :
                                bind_int(name, "", "", pair<int64_t, int64_t>(1, 500), get, set);
                        break;
 
+               case SR_CONF_AVG_SAMPLES:
+                       bind_int(name, "", "", pair<int64_t, int64_t>(0, INT32_MAX), get, set);
+                       break;
+
                default:
                        break;
                }