lecroy-xstream: Fix COMM_HEADER and COMM_FORMAT

This commit is contained in:
Sylvain Pelissier 2017-10-02 09:01:31 +02:00 committed by Soeren Apel
parent 47bbc4b531
commit 6158728cdb
1 changed files with 4 additions and 3 deletions

View File

@ -459,6 +459,10 @@ SR_PRIV int lecroy_xstream_init_device(struct sr_dev_inst *sdi)
return SR_ERR_NA;
}
/* Set the desired response and format modes. */
sr_scpi_send(sdi->conn, "COMM_HEADER OFF");
sr_scpi_send(sdi->conn, "COMM_FORMAT OFF,WORD,BIN");
devc->analog_groups = g_malloc0(sizeof(struct sr_channel_group*) *
scope_models[model_index].analog_channels);
@ -490,9 +494,6 @@ 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;
}