]> sigrok.org Git - pulseview.git/commitdiff
Allow setting a frame limit
authorValentin Ochs <redacted>
Sat, 27 Jun 2020 20:54:24 +0000 (22:54 +0200)
committerSoeren Apel <redacted>
Sun, 12 Jul 2020 21:46:12 +0000 (23:46 +0200)
pv/binding/device.cpp

index 37c9d43d55248218b4e7e247cd6173fa1696b664..f84c1aae997a487c678709ab4a687e0409480d05 100644 (file)
@@ -91,6 +91,10 @@ Device::Device(shared_ptr<sigrok::Configurable> configurable) :
                        bind_int(name, "", "%", pair<int64_t, int64_t>(0, 100), get, set);
                        break;
 
+               case SR_CONF_LIMIT_FRAMES:
+                       bind_int(name, "", "", pair<int64_t, int64_t>(0, 1000000), get, set);
+                       break;
+
                case SR_CONF_PATTERN_MODE:
                case SR_CONF_BUFFERSIZE:
                case SR_CONF_TRIGGER_SOURCE: