From: Frank Stettner Date: Wed, 10 Apr 2019 08:28:06 +0000 (+0200) Subject: scpi-pps: Add missing frequency channel settings for acquisition. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=969671a542f3af8d918e57205e80670a11e8c1fa;p=libsigrok.git scpi-pps: Add missing frequency channel settings for acquisition. --- diff --git a/src/hardware/scpi-pps/protocol.c b/src/hardware/scpi-pps/protocol.c index b6e60b96..9609936a 100644 --- a/src/hardware/scpi-pps/protocol.c +++ b/src/hardware/scpi-pps/protocol.c @@ -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);