]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/rs9lcd.c
dmm: vc870: support effective voltage & current
[libsigrok.git] / src / dmm / rs9lcd.c
index 7db3d8a7b6f9c4f964a27e83ebdff55f9e994a3b..d337d7f7200ebf0711eccfaee8fc399406531623 100644 (file)
@@ -287,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;
@@ -318,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;