From: Bert Vermeulen Date: Wed, 22 Oct 2014 20:19:41 +0000 (+0200) Subject: hantek-dso: Properly zero out MQ flags. X-Git-Tag: libsigrok-0.4.0~830 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cf49d66bc6dc2903ac1380464fe5f3004eaf508d;p=libsigrok.git hantek-dso: Properly zero out MQ flags. --- 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;