]> sigrok.org Git - libsigrok.git/commitdiff
yokogawa-dlm: Populate sdi->serial_num and sdi->version
authorSoeren Apel <redacted>
Thu, 16 Oct 2014 20:43:05 +0000 (22:43 +0200)
committerBert Vermeulen <redacted>
Fri, 17 Oct 2014 01:02:52 +0000 (03:02 +0200)
src/hardware/yokogawa-dlm/api.c

index dfecfb18af0ec251d13e1f1dca68a23d017e2681..23d21185278d9b4044ac3a7701c4d91589172913 100644 (file)
@@ -63,9 +63,11 @@ static struct sr_dev_inst *probe_usbtmc_device(struct sr_scpi_dev_inst *scpi)
                goto fail;
 
        if (!(sdi = sr_dev_inst_new(SR_ST_ACTIVE, MANUFACTURER_NAME,
-                       model_name, NULL)))
+                       model_name, hw_info->firmware_version)))
                goto fail;
 
+       sdi->serial_num = g_strdup(hw_info->serial_number);
+
        sr_scpi_hw_info_free(hw_info);
        hw_info = NULL;