From: Bert Vermeulen Date: Mon, 29 Oct 2012 10:50:34 +0000 (+0100) Subject: Fluke 287/289: support for dBu/dBV measurement units X-Git-Tag: dsupstream~621 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2c04dede20e1e69420d872878e8d04792333626c;p=libsigrok.git Fluke 287/289: support for dBu/dBV measurement units --- diff --git a/hardware/fluke-dmm/fluke.c b/hardware/fluke-dmm/fluke.c index 9258fab5..6d45217c 100644 --- a/hardware/fluke-dmm/fluke.c +++ b/hardware/fluke-dmm/fluke.c @@ -181,6 +181,13 @@ static struct sr_datafeed_analog *handle_qm_v2(const struct sr_dev_inst *sdi, *analog->data = NAN; } else analog->mq = -1; + } if (!strcmp(tokens[1], "dBV") || !strcmp(tokens[1], "dBm")) { + analog->mq = SR_MQ_VOLTAGE; + if (tokens[1][2] == 'm') + analog->unit = SR_UNIT_DECIBEL_MW; + else + analog->unit = SR_UNIT_DECIBEL_VOLT; + analog->mqflags |= SR_MQFLAG_AC | SR_MQFLAG_RMS; } if (!strcmp(tokens[1], "CEL") || !strcmp(tokens[1], "FAR")) { if (!strcmp(tokens[2], "NORMAL")) { analog->mq = SR_MQ_TEMPERATURE;