aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Apel <soeren@apelpie.net>2017-02-25 17:46:00 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-02 21:22:00 +0100
commitd0b913eac47d8a1dc38ce84315b57f896bcf8c82 (patch)
tree6f8ac2f4431272fb2dd1bd665320af61f30287a2
parentbb08570f1ad4a6c2a89c8e9afb73f8be08f5a663 (diff)
lecroy-xstream: Don't send custom SCPI command to the probed device
-rw-r--r--src/hardware/lecroy-xstream/api.c1
-rw-r--r--src/hardware/lecroy-xstream/protocol.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/hardware/lecroy-xstream/api.c b/src/hardware/lecroy-xstream/api.c
index bd84a0b..f3b4c90 100644
--- a/src/hardware/lecroy-xstream/api.c
+++ b/src/hardware/lecroy-xstream/api.c
@@ -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;
diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c
index e315262..13a7191 100644
--- a/src/hardware/lecroy-xstream/protocol.c
+++ b/src/hardware/lecroy-xstream/protocol.c
@@ -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;
}