]> sigrok.org Git - libsigrok.git/commitdiff
metex14: Parse microamp (uA) values.
authorAlexandru Gagniuc <redacted>
Fri, 30 Nov 2012 19:15:44 +0000 (13:15 -0600)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 13:21:18 +0000 (14:21 +0100)
Signed-off-by: Alexandru Gagniuc <redacted>
hardware/common/dmm/metex14.c

index 7afae5f97d1cc1df5e1111e64b44789fd89f7399..b15ac4f0c9a294a5be9387f1b78a7cd7e361c53a 100644 (file)
@@ -139,6 +139,8 @@ static void parse_flags(const char *buf, struct metex14_info *info)
                info->is_ampere = TRUE;
        else if (!strncmp(buf + 9, "  mA", 4))
                info->is_milli = info->is_ampere = TRUE;
+       else if (!strncmp(buf + 9, "  uA", 4))
+               info->is_micro = info->is_ampere = TRUE;
        else if (!strncmp(buf + 9, "   V", 4))
                info->is_volt = TRUE;
        else if (!strncmp(buf + 9, "  mV", 4))