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;