]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/rs9lcd.c
SR_DF_ANALOG_OLD and sr_datafeed_analog_old renames.
[libsigrok.git] / src / dmm / rs9lcd.c
index 44080604789eb79b83aaf0b0da3e96935f188e45..d337d7f7200ebf0711eccfaee8fc399406531623 100644 (file)
@@ -28,6 +28,7 @@
  * and protocol is used on any other device.
  */
 
+#include <config.h>
 #include <string.h>
 #include <ctype.h>
 #include <math.h>
@@ -286,7 +287,7 @@ static double lcd_to_double(const struct rs9lcd_packet *rs_packet, int type)
                rawval *= -1;
 
        /* See if we need to multiply our raw value by anything. */
-       if (rs_packet->indicatrix1 & IND2_NANO)
+       if (rs_packet->indicatrix2 & IND2_NANO)
                rawval *= 1E-9;
        else if (rs_packet->indicatrix2 & IND2_MICRO)
                rawval *= 1E-6;
@@ -317,7 +318,7 @@ static gboolean is_logic_high(const struct rs9lcd_packet *rs_packet)
 }
 
 SR_PRIV int sr_rs9lcd_parse(const uint8_t *buf, float *floatval,
-                           struct sr_datafeed_analog *analog, void *info)
+                           struct sr_datafeed_analog_old *analog, void *info)
 {
        const struct rs9lcd_packet *rs_packet = (void *)buf;
        double rawval;