]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/rs9lcd.c
demo: Fix continuous mode and honor time limit
[libsigrok.git] / src / dmm / rs9lcd.c
index 44080604789eb79b83aaf0b0da3e96935f188e45..1f86d8859b29ebcdac5c1afe39787f79e02e3339 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;