X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.cpp;h=f8fbe67f79bb1bf2260f7e3749e0044c2b139abd;hp=ea411f156cf33b52f4f86ed61db2ed017a7418f4;hb=68162c2925e3c5a3c7d0b4d3d100184e5c649eba;hpb=f00fc2a9e1cc85888a732de9f981f50ce957e5f1 diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index ea411f15..f8fbe67f 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -102,8 +102,8 @@ void Connect::populate_drivers() * and sensors. */ bool supported_device = false; - if ((sr_config_list(drivers[i], SR_CONF_DEVICE_OPTIONS, - &gvar_opts, NULL) == SR_OK)) { + if ((sr_config_list(drivers[i], NULL, NULL, + SR_CONF_DEVICE_OPTIONS, &gvar_opts) == SR_OK)) { hwopts = (const int32_t *)g_variant_get_fixed_array(gvar_opts, &num_opts, sizeof(int32_t)); for (unsigned int j = 0; j < num_opts; j++) @@ -189,8 +189,8 @@ void Connect::device_selected(int index) unset_connection(); - if ((sr_config_list(driver, SR_CONF_SCAN_OPTIONS, - &gvar_list, NULL) == SR_OK)) { + if ((sr_config_list(driver, NULL, NULL, + SR_CONF_SCAN_OPTIONS, &gvar_list) == SR_OK)) { hwopts = (const int32_t *)g_variant_get_fixed_array(gvar_list, &num_opts, sizeof(int32_t));