From: Soeren Apel Date: Thu, 16 Oct 2014 20:42:50 +0000 (+0200) Subject: rigol-ds: Populate sdi->serial_num X-Git-Tag: libsigrok-0.4.0~843 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b3fccc851b1bbeb6955ddec9007cea72a3e9e3fd;p=libsigrok.git rigol-ds: Populate sdi->serial_num --- diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index eb931e50..0234c9c0 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -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;