]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/motech-lps-30x/protocol.c
Enable loading of session files without the unit size defined
[libsigrok.git] / src / hardware / motech-lps-30x / protocol.c
index c7f65e1001fc33b5015febadbaf9f2f428f1557d..4b9da80258b0409adbafedaa432e53ad21e1f3cd 100644 (file)
@@ -23,6 +23,7 @@
  *  @internal
  */
 
+#include <config.h>
 #include <errno.h>
 #include <string.h>
 #include "protocol.h"
@@ -32,12 +33,12 @@ static void send_data(struct sr_dev_inst *sdi)
 {
        struct dev_context *devc;
        struct sr_datafeed_packet packet;
-       struct sr_datafeed_analog analog;
+       struct sr_datafeed_analog_old analog;
        int i;
        float data[MAX_CHANNELS];
 
        devc = sdi->priv;
-       packet.type = SR_DF_ANALOG;
+       packet.type = SR_DF_ANALOG_OLD;
        packet.payload = &analog;
        analog.channels = sdi->channels;
        analog.num_samples = 1;