There is no status bit for RMS. We know about RMS if certain modes are
active. So, drop this superfluous variable.

Signed-off-by: Wolfram Sang <w...@the-dreams.de>
---
 src/dmm/vc870.c          | 1 -
 src/libsigrok-internal.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/dmm/vc870.c b/src/dmm/vc870.c
index fc79567..2663260 100644
--- a/src/dmm/vc870.c
+++ b/src/dmm/vc870.c
@@ -280,7 +280,6 @@ static void parse_flags(const uint8_t *buf, struct 
vc870_info *info)
        /* Byte 22: Always '\n' (newline, 0x0a, 10) */
 
        info->is_auto = !info->is_manu;
-       info->is_rms = TRUE;
 }
 
 static void handle_flags(struct sr_datafeed_analog_old *analog,
diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h
index 4963158..d58202e 100644
--- a/src/libsigrok-internal.h
+++ b/src/libsigrok-internal.h
@@ -1193,7 +1193,7 @@ struct vc870_info {
        gboolean is_light, is_usb, is_warning, is_auto_power, is_misplug_warn;
        gboolean is_lo, is_hi, is_open2;
 
-       gboolean is_frequency, is_dual_display, is_auto, is_rms;
+       gboolean is_frequency, is_dual_display, is_auto;
 };
 
 SR_PRIV gboolean sr_vc870_packet_valid(const uint8_t *buf);
-- 
2.1.4


------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to