]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hung-chang-dso-2100/protocol.c
ftdi-la: added support for the device selection
[libsigrok.git] / src / hardware / hung-chang-dso-2100 / protocol.c
index 022fac7ec456983e2c15edffd6d2783879af6d0f..c1c8dacb6df40f6dc8375215ae7a1636323dbe57 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <ieee1284.h>
 #include "protocol.h"
 
@@ -330,7 +331,7 @@ static void push_samples(const struct sr_dev_inst *sdi, uint8_t *buf, size_t num
 {
        struct dev_context *devc = sdi->priv;
        float *data = devc->samples;
-       struct sr_datafeed_analog analog = {
+       struct sr_datafeed_analog_old analog = {
                .channels = devc->enabled_channel,
                .num_samples = num,
                .mq = SR_MQ_VOLTAGE,
@@ -339,7 +340,7 @@ static void push_samples(const struct sr_dev_inst *sdi, uint8_t *buf, size_t num
                .data = data,
        };
        struct sr_datafeed_packet packet = {
-               .type = SR_DF_ANALOG,
+               .type = SR_DF_ANALOG_OLD,
                .payload = &analog,
        };
        float factor = devc->factor;