scpi-pps: Add missing frequency channel settings for acquisition.

This commit is contained in:
Frank Stettner 2019-04-10 10:28:06 +02:00 committed by Uwe Hermann
parent 3d1aa50f38
commit 969671a542
1 changed files with 4 additions and 0 deletions

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