#include <stdlib.h>
#include <stdint.h>
#include <math.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
#define LOG_PREFIX "ut372"
divisor = 1;
for (i = 0; i < 5; i++) {
- segments = decode_pair(buf + 1 + 2*i);
+ segments = decode_pair(buf + 1 + (2 * i));
for (j = 0; j < ARRAY_SIZE(lookup); j++) {
if (lookup[j] == (segments & ~DECIMAL_POINT_MASK)) {
value += j * pow(10, i);