---
 src/hardware/hameg-hmo/api.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c
index 78cdc17..31c11e2 100644
--- a/src/hardware/hameg-hmo/api.c
+++ b/src/hardware/hameg-hmo/api.c
@@ -80,16 +80,19 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct 
sr_scpi_dev_inst *scpi
                                    hw_info->firmware_version))) {
                goto fail;
        }
+
+       sdi->driver = di;
+       sdi->inst_type = SR_INST_SCPI;
+       sdi->conn = scpi;
+       sdi->serial_num = g_strdup(hw_info->serial_number);
+
        sr_scpi_hw_info_free(hw_info);
        hw_info = NULL;
 
        if (!(devc = g_try_malloc0(sizeof(struct dev_context))))
                goto fail;
 
-       sdi->driver = di;
        sdi->priv = devc;
-       sdi->inst_type = SR_INST_SCPI;
-       sdi->conn = scpi;
 
        if (hmo_init_device(sdi) != SR_OK)
                goto fail;
-- 
1.7.8.6


------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to