]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/fs9922.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / dmm / fs9922.c
index 698e1184dd602d4b69b7c3405433fb97f33e8064..ae2b4850bb5b70229a94cf5801fcac8f82fd5758 100644 (file)
@@ -22,6 +22,7 @@
  * Fortune Semiconductor FS9922-DMM3/FS9922-DMM4 protocol parser.
  */
 
+#include <config.h>
 #include <string.h>
 #include <ctype.h>
 #include <math.h>
@@ -112,7 +113,9 @@ static int parse_value(const uint8_t *buf, float *result)
        } else if (!isdigit(buf[1]) || !isdigit(buf[2]) ||
                   !isdigit(buf[3]) || !isdigit(buf[4])) {
                sr_dbg("Value contained invalid digits: %02x %02x %02x %02x ("
-                      "%c %c %c %c).", buf[1], buf[2], buf[3], buf[4]);
+                       "%c %c %c %c).",
+                       buf[1], buf[2], buf[3], buf[4],
+                       buf[1], buf[2], buf[3], buf[4]);
                return SR_ERR;
        }
        intval = 0;