X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fbinding%2Fdevice.cpp;h=4c2321cf33ea66b80bff41a570248fd2c07adcbc;hb=e639f241d0731bf402a7e4df335313d866f69fc6;hp=1afc2ce2f32c7f3009aec2296231b019fb15e8b8;hpb=20f59e957e70250cfb876ac7a1743134d6b83339;p=pulseview.git diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp index 1afc2ce..4c2321c 100644 --- a/pv/binding/device.cpp +++ b/pv/binding/device.cpp @@ -68,7 +68,7 @@ Device::Device(shared_ptr configurable) : string name_str; try { name_str = key->description(); - } catch (Error e) { + } catch (Error& e) { name_str = key->name(); } @@ -97,6 +97,7 @@ Device::Device(shared_ptr configurable) : case SR_CONF_TRIGGER_SLOPE: case SR_CONF_COUPLING: case SR_CONF_CLOCK_EDGE: + case SR_CONF_DATA_SOURCE: bind_enum(name, "", key, capabilities, get, set); break;