]> sigrok.org Git - libsigrok.git/commitdiff
scpi-pps: Add missing frequency channel settings for acquisition.
authorFrank Stettner <redacted>
Wed, 10 Apr 2019 08:28:06 +0000 (10:28 +0200)
committerUwe Hermann <redacted>
Wed, 17 Apr 2019 15:44:56 +0000 (17:44 +0200)
src/hardware/scpi-pps/protocol.c

index b6e60b9622e24e55f13d5411d91594836db75e91..9609936a23ae0604df899b9ddc23482c12111715 100644 (file)
@@ -118,6 +118,10 @@ SR_PRIV int scpi_pps_receive_data(int fd, int revents, void *cb_data)
                analog.meaning->unit = SR_UNIT_WATT;
                analog.encoding->digits = ch_spec->power[4];
                analog.spec->spec_digits = ch_spec->power[3];
+       } else if (pch->mq == SR_MQ_FREQUENCY) {
+               analog.meaning->unit = SR_UNIT_HERTZ;
+               analog.encoding->digits = ch_spec->frequency[4];
+               analog.spec->spec_digits = ch_spec->frequency[3];
        }
        f = (float)g_variant_get_double(gvdata);
        g_variant_unref(gvdata);