int ret, channel;
const struct dev_context *devc;
const struct sr_channel *ch;
- const struct sr_key_info *ki;
-
- ki = sr_key_info_get(SR_KEY_CONFIG, key);
-
- sr_info("%s(%d, %s)", __func__, key, (ki != NULL) ? ki->name : NULL);
if (!sdi)
return SR_ERR_ARG;
} else {
ch = cg->channels->data;
channel = ch->index;
- sr_info("%s(%d, %s, %d)", __func__, key,
- (ki != NULL) ? ki->name : NULL, channel);
ret = SR_OK;
switch (key) {
case SR_CONF_VOLTAGE:
struct dev_context *devc;
devc = sdi->priv;
- sr_info("%s(%d)", __func__, key);
ret = SR_OK;
struct dev_context *devc;
struct sr_serial_dev_inst *serial;
- sr_info("%s()", __func__);
devc = sdi->priv;
sr_sw_limits_acquisition_start(&devc->limits);
serial = sdi->conn;
if (revents == G_IO_IN) {
- sr_dbg("%s(G_IO_IN)", __func__);
if (!devc->reply_pending) {
sr_err("No reply pending.");
gpd_receive_reply(serial, reply, sizeof(reply));
devc->reply_pending = FALSE;
}
} else {
- sr_dbg("%s(TIMEOUT)", __func__);
if (!devc->reply_pending) {
for (i = 0; i < devc->model->num_channels; i++)
gpd_send_cmd(serial, "IOUT%d?\nVOUT%d?\n",