]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-dmm/api.c
Remove non-error hw_info_get() messages.
[libsigrok.git] / hardware / uni-t-dmm / api.c
index 11755bcdcc9730c8c46c09405887207b9858f231..d618ef44917af560259695e74a718700e57a7277 100644 (file)
@@ -32,11 +32,6 @@ static const int hwcaps[] = {
        0,
 };
 
-static const char *probe_names[] = {
-       "Probe",
-       NULL,
-};
-
 SR_PRIV struct sr_dev_driver uni_t_ut61d_driver_info;
 SR_PRIV struct sr_dev_driver voltcraft_vc820_driver_info;
 
@@ -100,7 +95,7 @@ static GSList *hw_scan(GSList *options)
 
        devices = NULL;
 
-       if (!(l = sr_usb_connect(drvc->sr_ctx->libusb_ctx, "1a86.e008")))
+       if (!(l = sr_usb_find(drvc->sr_ctx->libusb_ctx, "1a86.e008")))
                return NULL;
 
        for (i = 0; i < (int)g_slist_length(l); i++) {
@@ -178,14 +173,6 @@ static int hw_info_get(int info_id, const void **data,
                *data = hwcaps;
                sr_spew("%s: Returning hwcaps.", __func__);
                break;
-       case SR_DI_NUM_PROBES:
-               *data = GINT_TO_POINTER(1);
-               sr_spew("%s: Returning number of probes.", __func__);
-               break;
-       case SR_DI_PROBE_NAMES:
-               *data = probe_names;
-               sr_spew("%s: Returning probe names.", __func__);
-               break;
        case SR_DI_SAMPLERATES:
                /* TODO: Get rid of this. */
                *data = NULL;
@@ -199,7 +186,6 @@ static int hw_info_get(int info_id, const void **data,
                return SR_ERR_ARG;
                break;
        default:
-               sr_err("%s: Unknown info_id %d.", __func__, info_id);
                return SR_ERR_ARG;
                break;
        }