From cf49d66bc6dc2903ac1380464fe5f3004eaf508d Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Wed, 22 Oct 2014 22:19:41 +0200 Subject: [PATCH] hantek-dso: Properly zero out MQ flags. --- src/hardware/hantek-dso/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index e34f328e..ea6d59cc 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -669,6 +669,7 @@ static void send_chunk(struct sr_dev_inst *sdi, unsigned char *buf, analog.num_samples = num_samples; analog.mq = SR_MQ_VOLTAGE; analog.unit = SR_UNIT_VOLT; + analog.mqflags = 0; /* TODO: Check malloc return value. */ analog.data = g_try_malloc(analog.num_samples * sizeof(float) * num_channels); data_offset = 0;