]> sigrok.org Git - sigrok-gtk.git/commitdiff
sr: more API cleanup and documentation
authorBert Vermeulen <redacted>
Mon, 13 Feb 2012 02:36:32 +0000 (03:36 +0100)
committerBert Vermeulen <redacted>
Mon, 13 Feb 2012 02:36:32 +0000 (03:36 +0100)
toolbar.c

index 5a2d0a82d8a2b5e8111ed93cfa9ca30e5c61d254..b3c6479bb70dd2fe1712aa439799bba2627e88d7 100644 (file)
--- a/toolbar.c
+++ b/toolbar.c
@@ -355,7 +355,7 @@ static void capture_run(GtkAction *action, GObject *parent)
 
        if (time_msec) {
                int *capabilities = device->plugin->get_capabilities();
-               if (sr_find_hwcap(capabilities, SR_HWCAP_LIMIT_MSEC)) {
+               if (sr_has_hwcap(capabilities, SR_HWCAP_LIMIT_MSEC)) {
                        if (device->plugin->set_configuration(device->plugin_index,
                                                        SR_HWCAP_LIMIT_MSEC,
                                                        &time_msec) != SR_OK) {