]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/api.c
sr: analog: Add MQ and UNIT enums.
[libsigrok.git] / hardware / hantek-dso / api.c
index e6b87f85eaae6a6d84ca8dfcf6ee4cb17d992df3..c9310336173bd6e625352355cf4a374ab939b7f5 100644 (file)
@@ -573,7 +573,8 @@ static void receive_transfer(struct libusb_transfer *transfer)
        packet.payload = &analog;
        /* TODO: support for 5xxx series 9-bit samples */
        analog.num_samples = transfer->actual_length / 2;
-       analog.unit = SR_UNIT_VOLTAGE;
+       analog.mq = SR_MQ_VOLTAGE;
+       analog.unit = SR_UNIT_VOLT;
        analog.data = g_try_malloc(analog.num_samples * sizeof(float) * num_probes);
        data_offset = 0;
        for (i = 0; i < analog.num_samples; i++) {