]> sigrok.org Git - libsigrok.git/commitdiff
siglent-sds: Drop currently unused switch/case.
authorUwe Hermann <redacted>
Wed, 21 Feb 2018 21:57:59 +0000 (22:57 +0100)
committerUwe Hermann <redacted>
Fri, 22 Jun 2018 16:54:28 +0000 (18:54 +0200)
src/hardware/siglent-sds/protocol.c

index e33c4adb32d066742387fa1758f1caed638cca89..8a2547df80338d2520ef09626354e928a6190a73 100644 (file)
@@ -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);
 
-       switch (devc->model->series->protocol) {
-       case NON_SPO_MODEL:
-       case SPO_MODEL:
-               s = (ch->type == SR_CHANNEL_LOGIC) ? "D%d:WF?" : "C%d:WF? ALL";
-               if (sr_scpi_send(sdi->conn, s, ch->index + 1) != SR_OK)
-                       return SR_ERR;
-               siglent_sds_set_wait_event(devc, WAIT_NONE);
-               break;
-       }
+       s = (ch->type == SR_CHANNEL_LOGIC) ? "D%d:WF?" : "C%d:WF? ALL";
+       if (sr_scpi_send(sdi->conn, s, ch->index + 1) != SR_OK)
+               return SR_ERR;
+       siglent_sds_set_wait_event(devc, WAIT_NONE);
 
        siglent_sds_set_wait_event(devc, WAIT_BLOCK);