]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/yokogawa-dlm/protocol_wrappers.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / hardware / yokogawa-dlm / protocol_wrappers.c
index a4fc2cd7517de4aeec16522ec1cc778b66cbba51..e2a05be9e2ba27726093c33201f0d128b8761b8a 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #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;
 }
@@ -253,7 +255,6 @@ int dlm_digital_pod_state_set(struct sr_scpi_dev_inst *scpi, int pod,
                return sr_scpi_send(scpi, ":LOGIC:MODE OFF");
 }
 
-
 int dlm_response_headers_set(struct sr_scpi_dev_inst *scpi,
                const gboolean value)
 {
@@ -268,7 +269,6 @@ int dlm_acquisition_stop(struct sr_scpi_dev_inst *scpi)
        return sr_scpi_send(scpi, ":STOP");
 }
 
-
 int dlm_acq_length_get(struct sr_scpi_dev_inst *scpi,
                uint32_t *response)
 {
@@ -295,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.