From: Soeren Apel Date: Thu, 16 Oct 2014 20:43:05 +0000 (+0200) Subject: yokogawa-dlm: Populate sdi->serial_num and sdi->version X-Git-Tag: libsigrok-0.4.0~842 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d1314831e473056db017c742011d620648f152ad;p=libsigrok.git yokogawa-dlm: Populate sdi->serial_num and sdi->version --- diff --git a/src/hardware/yokogawa-dlm/api.c b/src/hardware/yokogawa-dlm/api.c index dfecfb18..23d21185 100644 --- a/src/hardware/yokogawa-dlm/api.c +++ b/src/hardware/yokogawa-dlm/api.c @@ -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;