X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdevice.cpp;h=a347f784510a6b012fd5abec8873be74cba7b03d;hp=1afc2ce2f32c7f3009aec2296231b019fb15e8b8;hb=4e2195c8d934f7f874b612eaace8c6849e8b475d;hpb=20f59e957e70250cfb876ac7a1743134d6b83339 diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp index 1afc2ce..a347f78 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,8 @@ Device::Device(shared_ptr configurable) : case SR_CONF_TRIGGER_SLOPE: case SR_CONF_COUPLING: case SR_CONF_CLOCK_EDGE: + case SR_CONF_DATA_SOURCE: + case SR_CONF_EXTERNAL_CLOCK_SOURCE: bind_enum(name, "", key, capabilities, get, set); break;