X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdmm%2Fut372.c;h=2de3da3436fbb60e25b6de6f39240642caeed1b1;hb=07ffa5b315caab0d6d703e04f09035bc0f2b3ee4;hp=d9c7720fd16bce17323271ef0c25554c7caa4131;hpb=dc89faeace016d0fbd8314937d0335a2ae76de14;p=libsigrok.git diff --git a/src/dmm/ut372.c b/src/dmm/ut372.c index d9c7720f..2de3da34 100644 --- a/src/dmm/ut372.c +++ b/src/dmm/ut372.c @@ -118,7 +118,7 @@ SR_PRIV int sr_ut372_parse(const uint8_t *buf, float *floatval, 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);