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

index eb931e50c4d0309b0cbd5adb6c4fed48a17e83ca..0234c9c0df3ab5d63d8796ed9e1ad1c9596a17f8 100644 (file)
@@ -300,9 +300,9 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
        }
 
        sdi->conn = scpi;
-
        sdi->driver = di;
        sdi->inst_type = SR_INST_SCPI;
+       sdi->serial_num = g_strdup(hw_info->serial_number);
 
        if (!(devc = g_try_malloc0(sizeof(struct dev_context))))
                return NULL;