}
sdi = g_malloc0(sizeof(struct sr_dev_inst));
- sdi->status = SR_ST_INACTIVE;
sdi->vendor = g_strdup(vendor);
sdi->model = g_strdup(hw_info->model);
sdi->version = g_strdup(hw_info->firmware_version);
hw_info = NULL;
scpi_cmd(sdi, devc->device->commands, SCPI_CMD_LOCAL);
- sr_scpi_close(scpi);
return sdi;
}
select_channel(sdi, cg->channels->data);
devc = sdi->priv;
- ret = SR_OK;
+
switch (key) {
case SR_CONF_ENABLED:
if (g_variant_get_boolean(data))