X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdmm%2Fbm86x.c;h=442e5cca038e2238dfc7c9f1ba41a943a5679856;hb=d32120c4c30650c30720d04eaf88dcf7b76a1e9f;hp=ea260d8f97180869cfa6441696be549a476323da;hpb=f12591299ee58dec8cbbada4c0073b34f9359c75;p=libsigrok.git diff --git a/src/dmm/bm86x.c b/src/dmm/bm86x.c index ea260d8f..442e5cca 100644 --- a/src/dmm/bm86x.c +++ b/src/dmm/bm86x.c @@ -302,6 +302,8 @@ static void brymen_bm86x_parse(const uint8_t *buf, float *floatval, NULL, &temp_unit, NULL, 0x80); ret = brymen_bm86x_parse_digits(&buf[9], 4, txtbuf, floatval, NULL, &digits, 0x10); + if (ret != SR_OK) + return; /* SI unit. */ if (buf[14] & 0x08) {