]> sigrok.org Git - libsigrok.git/commitdiff
victor-dmm: Fix MIN/MAX always being reported.
authorUwe Hermann <redacted>
Sun, 29 Dec 2013 11:33:10 +0000 (12:33 +0100)
committerUwe Hermann <redacted>
Sun, 29 Dec 2013 11:33:10 +0000 (12:33 +0100)
This fixes bug #228.

hardware/victor-dmm/protocol.c

index ad78224fab1461c73c8ab780f899f4ad15a672db..a18f0a5b9922f4fb5a7d21d3998f1df511e2e76b 100644 (file)
@@ -138,7 +138,7 @@ static void decode_buf(struct sr_dev_inst *sdi, unsigned char *data)
        }
 
        /* Scale flags on the right, continued */
-       is_max = is_min = TRUE;
+       is_max = is_min = FALSE;
        if (data[5] & 0x04)
                is_max = TRUE;
        if (data[5] & 0x08)