gwinstek-gpd: Drop some unneeded debug logs.
This commit is contained in:
parent
b872ab7d30
commit
eaa8c6597b
|
@ -223,11 +223,6 @@ static int config_get(uint32_t key, GVariant **data,
|
||||||
int ret, channel;
|
int ret, channel;
|
||||||
const struct dev_context *devc;
|
const struct dev_context *devc;
|
||||||
const struct sr_channel *ch;
|
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)
|
if (!sdi)
|
||||||
return SR_ERR_ARG;
|
return SR_ERR_ARG;
|
||||||
|
@ -249,8 +244,6 @@ static int config_get(uint32_t key, GVariant **data,
|
||||||
} else {
|
} else {
|
||||||
ch = cg->channels->data;
|
ch = cg->channels->data;
|
||||||
channel = ch->index;
|
channel = ch->index;
|
||||||
sr_info("%s(%d, %s, %d)", __func__, key,
|
|
||||||
(ki != NULL) ? ki->name : NULL, channel);
|
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case SR_CONF_VOLTAGE:
|
case SR_CONF_VOLTAGE:
|
||||||
|
@ -287,7 +280,6 @@ static int config_set(uint32_t key, GVariant *data,
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
|
|
||||||
devc = sdi->priv;
|
devc = sdi->priv;
|
||||||
sr_info("%s(%d)", __func__, key);
|
|
||||||
|
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
|
|
||||||
|
@ -378,7 +370,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
struct sr_serial_dev_inst *serial;
|
struct sr_serial_dev_inst *serial;
|
||||||
|
|
||||||
sr_info("%s()", __func__);
|
|
||||||
devc = sdi->priv;
|
devc = sdi->priv;
|
||||||
|
|
||||||
sr_sw_limits_acquisition_start(&devc->limits);
|
sr_sw_limits_acquisition_start(&devc->limits);
|
||||||
|
|
|
@ -118,7 +118,6 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data)
|
||||||
serial = sdi->conn;
|
serial = sdi->conn;
|
||||||
|
|
||||||
if (revents == G_IO_IN) {
|
if (revents == G_IO_IN) {
|
||||||
sr_dbg("%s(G_IO_IN)", __func__);
|
|
||||||
if (!devc->reply_pending) {
|
if (!devc->reply_pending) {
|
||||||
sr_err("No reply pending.");
|
sr_err("No reply pending.");
|
||||||
gpd_receive_reply(serial, reply, sizeof(reply));
|
gpd_receive_reply(serial, reply, sizeof(reply));
|
||||||
|
@ -183,7 +182,6 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data)
|
||||||
devc->reply_pending = FALSE;
|
devc->reply_pending = FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sr_dbg("%s(TIMEOUT)", __func__);
|
|
||||||
if (!devc->reply_pending) {
|
if (!devc->reply_pending) {
|
||||||
for (i = 0; i < devc->model->num_channels; i++)
|
for (i = 0; i < devc->model->num_channels; i++)
|
||||||
gpd_send_cmd(serial, "IOUT%d?\nVOUT%d?\n",
|
gpd_send_cmd(serial, "IOUT%d?\nVOUT%d?\n",
|
||||||
|
|
Loading…
Reference in New Issue