From 198f9bc74d6c955a72e3e3282c2b0ba16ef39a62 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 3 Apr 2015 15:04:38 +0200 Subject: [PATCH] Device: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR. These options are used by baylibre-acme driver and should be available from pulseview configuration pop-up. Signed-off-by: Bartosz Golaszewski --- pv/binding/device.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp index 7547a46..32edea1 100644 --- a/pv/binding/device.cpp +++ b/pv/binding/device.cpp @@ -106,6 +106,7 @@ Device::Device(shared_ptr configurable) : case SR_CONF_EXTERNAL_CLOCK: case SR_CONF_RLE: + case SR_CONF_POWER_OFF: bind_bool(name, get, set); break; @@ -121,6 +122,10 @@ Device::Device(shared_ptr configurable) : bind_enum(name, key, capabilities, get, set, print_voltage_threshold); break; + case SR_CONF_PROBE_FACTOR: + bind_int(name, "", pair(1, 500), get, set); + break; + default: break; } -- 2.30.2