hantek-dso: Properly zero out MQ flags.

This commit is contained in:
Bert Vermeulen 2014-10-22 22:19:41 +02:00
parent 61b0292217
commit cf49d66bc6
1 changed files with 1 additions and 0 deletions

View 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;