siglent-sds: Drop currently unused switch/case.
This commit is contained in:
parent
eb354840f0
commit
c26107b745
|
@ -225,15 +225,10 @@ SR_PRIV int siglent_sds_channel_start(const struct sr_dev_inst *sdi)
|
||||||
|
|
||||||
sr_dbg("Starting reading data from channel %d.", ch->index + 1);
|
sr_dbg("Starting reading data from channel %d.", ch->index + 1);
|
||||||
|
|
||||||
switch (devc->model->series->protocol) {
|
s = (ch->type == SR_CHANNEL_LOGIC) ? "D%d:WF?" : "C%d:WF? ALL";
|
||||||
case NON_SPO_MODEL:
|
if (sr_scpi_send(sdi->conn, s, ch->index + 1) != SR_OK)
|
||||||
case SPO_MODEL:
|
return SR_ERR;
|
||||||
s = (ch->type == SR_CHANNEL_LOGIC) ? "D%d:WF?" : "C%d:WF? ALL";
|
siglent_sds_set_wait_event(devc, WAIT_NONE);
|
||||||
if (sr_scpi_send(sdi->conn, s, ch->index + 1) != SR_OK)
|
|
||||||
return SR_ERR;
|
|
||||||
siglent_sds_set_wait_event(devc, WAIT_NONE);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
siglent_sds_set_wait_event(devc, WAIT_BLOCK);
|
siglent_sds_set_wait_event(devc, WAIT_BLOCK);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue