X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Funi-t-dmm%2Fapi.c;h=210703d9a86cd678d8be2a2de7c306520fc81777;hb=431ec7ca4abc85810c2553646e6b6af13138b65e;hp=42e9e309f9e4ab20e643bac87316d59228d7362d;hpb=1953564a96798bc298d1c94eb90c129adbde1c9e;p=libsigrok.git diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index 42e9e309..210703d9 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -27,7 +27,7 @@ #define UNI_T_UT_D04_NEW "1a86.e008" static const int hwopts[] = { - SR_HWOPT_CONN, + SR_CONF_CONN, 0, }; @@ -93,7 +93,7 @@ static GSList *hw_scan(GSList *options) struct dev_context *devc; struct drv_context *drvc; struct sr_usb_dev_inst *usb; - struct sr_hwopt *opt; + struct sr_config *src; struct sr_probe *probe; const char *conn; @@ -106,10 +106,10 @@ static GSList *hw_scan(GSList *options) conn = NULL; for (l = options; l; l = l->next) { - opt = l->data; - switch (opt->hwopt) { - case SR_HWOPT_CONN: - conn = opt->value; + src = l->data; + switch (src->key) { + case SR_CONF_CONN: + conn = src->value; break; } }