hameg-hmo: Populate sdi->serial_num
This commit is contained in:
parent
d08667c53b
commit
b33db61c48
|
@ -80,16 +80,19 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct sr_scpi_dev_inst *scpi
|
||||||
hw_info->firmware_version))) {
|
hw_info->firmware_version))) {
|
||||||
goto fail;
|
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);
|
sr_scpi_hw_info_free(hw_info);
|
||||||
hw_info = NULL;
|
hw_info = NULL;
|
||||||
|
|
||||||
if (!(devc = g_try_malloc0(sizeof(struct dev_context))))
|
if (!(devc = g_try_malloc0(sizeof(struct dev_context))))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
sdi->driver = di;
|
|
||||||
sdi->priv = devc;
|
sdi->priv = devc;
|
||||||
sdi->inst_type = SR_INST_SCPI;
|
|
||||||
sdi->conn = scpi;
|
|
||||||
|
|
||||||
if (hmo_init_device(sdi) != SR_OK)
|
if (hmo_init_device(sdi) != SR_OK)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue