lecroy-xstream: Don't send custom SCPI command to the probed device

This commit is contained in:
Soeren Apel 2017-02-25 17:46:00 +01:00 committed by Uwe Hermann
parent bb08570f1a
commit d0b913eac4
2 changed files with 3 additions and 1 deletions

View 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;

View 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;
}