yokogawa-dlm: Populate sdi->serial_num and sdi->version

This commit is contained in:
Soeren Apel 2014-10-16 22:43:05 +02:00 committed by Bert Vermeulen
parent b3fccc851b
commit d1314831e4
1 changed files with 3 additions and 1 deletions

View File

@ -63,9 +63,11 @@ static struct sr_dev_inst *probe_usbtmc_device(struct sr_scpi_dev_inst *scpi)
goto fail;
if (!(sdi = sr_dev_inst_new(SR_ST_ACTIVE, MANUFACTURER_NAME,
model_name, NULL)))
model_name, hw_info->firmware_version)))
goto fail;
sdi->serial_num = g_strdup(hw_info->serial_number);
sr_scpi_hw_info_free(hw_info);
hw_info = NULL;