]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Remove header read (PR #33)
authorSylvain Pelissier <redacted>
Wed, 30 Oct 2019 15:24:32 +0000 (16:24 +0100)
committerUwe Hermann <redacted>
Mon, 16 Dec 2019 22:52:50 +0000 (23:52 +0100)
src/hardware/lecroy-xstream/protocol.c

index 8a2129a71bb28ecd3b5291cba8f1a3e8bcdd8897..802cda32efe38f147387457c81ae1ee387eeeff9 100644 (file)
@@ -626,7 +626,6 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data)
        struct sr_analog_encoding encoding;
        struct sr_analog_meaning meaning;
        struct sr_analog_spec spec;
-       char buf[8];
 
        (void)fd;
        (void)revents;
@@ -645,12 +644,6 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data)
        if (ch->type != SR_CHANNEL_ANALOG)
                return SR_ERR;
 
-       /* Pass on the received data of the channel(s). */
-       if (sr_scpi_read_data(sdi->conn, buf, 4) != 4) {
-               sr_err("Reading header failed, scope probably didn't send any data.");
-               return TRUE;
-       }
-
        if (sr_scpi_get_block(sdi->conn, NULL, &data) != SR_OK) {
                if (data)
                        g_byte_array_free(data, TRUE);