]> sigrok.org Git - libsigrok.git/commitdiff
fluke-dmm: Set the SR_MQFLAG_(AC|DC) flags for sums
authorAndreas Sandberg <redacted>
Sun, 13 Oct 2024 16:08:20 +0000 (17:08 +0100)
committerSoeren Apel <redacted>
Sun, 9 Nov 2025 22:38:02 +0000 (23:38 +0100)
The VAC_PLUS_DC and AAC_PLUS_DC units measure the sum of the AC and DC
components. Set both the SR_MQFLAG_AC and SR_MQFLAG_DC flags in these
cases.

Signed-off-by: Andreas Sandberg <redacted>
src/hardware/fluke-dmm/fluke-28x.c

index 7faac44aacd70746548b64870abfbe1456ba18d7..1a264ca25ede79ee92825df31fd491db29d0005f 100644 (file)
@@ -93,8 +93,10 @@ static const struct unit_mapping unit_map[] = {
        { "VAC", SR_MQ_VOLTAGE, SR_UNIT_VOLT, SR_MQFLAG_AC | SR_MQFLAG_RMS },
        { "ADC", SR_MQ_CURRENT, SR_UNIT_AMPERE, SR_MQFLAG_DC },
        { "AAC", SR_MQ_CURRENT, SR_UNIT_AMPERE, SR_MQFLAG_AC | SR_MQFLAG_RMS },
-       { "VAC_PLUS_DC", SR_MQ_VOLTAGE, SR_UNIT_VOLT, 0 },
-       { "AAC_PLUS_DC", SR_MQ_CURRENT, SR_UNIT_AMPERE, 0 },
+       { "VAC_PLUS_DC", SR_MQ_VOLTAGE, SR_UNIT_VOLT,
+               SR_MQFLAG_AC | SR_MQFLAG_DC | SR_MQFLAG_RMS },
+       { "AAC_PLUS_DC", SR_MQ_CURRENT, SR_UNIT_AMPERE,
+               SR_MQFLAG_AC | SR_MQFLAG_DC | SR_MQFLAG_RMS },
        /* Used in peak */
        { "V", SR_MQ_VOLTAGE, SR_UNIT_VOLT, 0 },
        /* Used in peak */