]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Don't send custom SCPI command to the probed device
authorSoeren Apel <redacted>
Sat, 25 Feb 2017 16:46:00 +0000 (17:46 +0100)
committerUwe Hermann <redacted>
Thu, 2 Mar 2017 20:22:00 +0000 (21:22 +0100)
src/hardware/lecroy-xstream/api.c
src/hardware/lecroy-xstream/protocol.c

index bd84a0bc2294a97cebd7006e9e48aafaa094f8fe..f3b4c9036de6f07bf88f7a421f6e8e0ed1572945 100644 (file)
@@ -53,7 +53,6 @@ static struct sr_dev_inst *probe_serial_device(struct sr_scpi_dev_inst *scpi)
        devc = NULL;
        hw_info = NULL;
 
-       sr_scpi_send(scpi, "COMM_HEADER OFF,WORD,BIN");
        if (sr_scpi_get_hw_id(scpi, &hw_info) != SR_OK) {
                sr_info("Couldn't get IDN response.");
                goto fail;
index e3152623ca077d15222fc4d90ae8c2b380f7f964..13a7191ac10959400a093854ad00eff4c2a7fa57 100644 (file)
@@ -528,6 +528,9 @@ SR_PRIV int lecroy_xstream_init_device(struct sr_dev_inst *sdi)
        if (!(devc->model_state = scope_state_new(devc->model_config)))
                return SR_ERR_MALLOC;
 
+       /* Set the desired response mode. */
+       sr_scpi_send(sdi->conn, "COMM_HEADER OFF,WORD,BIN");
+
        return SR_OK;
 }