X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fyokogawa-dlm%2Fprotocol_wrappers.c;h=e2a05be9e2ba27726093c33201f0d128b8761b8a;hb=e686119cc287164b0043c44857ab4cf2faedde53;hp=afe4efa317b865f9251d22214e61b2468dd48c17;hpb=1beccaed464a4d92a070988a0331fe399f9f7a7a;p=libsigrok.git
diff --git a/src/hardware/yokogawa-dlm/protocol_wrappers.c b/src/hardware/yokogawa-dlm/protocol_wrappers.c
index afe4efa3..e2a05be9 100644
--- a/src/hardware/yokogawa-dlm/protocol_wrappers.c
+++ b/src/hardware/yokogawa-dlm/protocol_wrappers.c
@@ -17,6 +17,7 @@
* along with this program. If not, see .
*/
+#include
#include "protocol_wrappers.h"
#define MAX_COMMAND_SIZE 64
@@ -92,6 +93,7 @@ int dlm_trigger_slope_get(struct sr_scpi_dev_inst *scpi,
}
g_free(resp);
+
return result;
}
@@ -191,7 +193,7 @@ int dlm_analog_chan_wrange_get(struct sr_scpi_dev_inst *scpi, int channel,
int result;
g_snprintf(cmd, sizeof(cmd), ":WAVEFORM:TRACE %d", channel);
- result = sr_scpi_send(scpi, cmd);
+ result = sr_scpi_send(scpi, cmd);
result &= sr_scpi_get_float(scpi, ":WAVEFORM:RANGE?", response);
return result;
}
@@ -203,7 +205,7 @@ int dlm_analog_chan_woffs_get(struct sr_scpi_dev_inst *scpi, int channel,
int result;
g_snprintf(cmd, sizeof(cmd), ":WAVEFORM:TRACE %d", channel);
- result = sr_scpi_send(scpi, cmd);
+ result = sr_scpi_send(scpi, cmd);
result &= sr_scpi_get_float(scpi, ":WAVEFORM:OFFSET?", response);
return result;
}
@@ -293,7 +295,8 @@ int dlm_chunks_per_acq_get(struct sr_scpi_dev_inst *scpi, int *response)
{
int result, acq_len;
- /* Data retrieval queries such as :WAVEFORM:SEND? will only return
+ /*
+ * Data retrieval queries such as :WAVEFORM:SEND? will only return
* up to 12500 samples at a time. If the oscilloscope operates in a
* mode where more than 12500 samples fit on screen (i.e. in one
* acquisition), data needs to be retrieved multiple times.