]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: Properly zero out MQ flags.
authorBert Vermeulen <redacted>
Wed, 22 Oct 2014 20:19:41 +0000 (22:19 +0200)
committerBert Vermeulen <redacted>
Wed, 22 Oct 2014 20:19:41 +0000 (22:19 +0200)
src/hardware/hantek-dso/api.c

index e34f328eb20a89eabec27981be9ab5a9bebefaa9..ea6d59ccb26c7fc60b55772a99ee9b940686c2be 100644 (file)
@@ -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;