]> sigrok.org Git - libsigrok.git/commit
dmm/bm86x: improve robustness of secondary display parsing
authorGerhard Sittig <redacted>
Sun, 16 Jun 2019 08:37:50 +0000 (10:37 +0200)
committerGerhard Sittig <redacted>
Sun, 21 Aug 2022 15:45:11 +0000 (17:45 +0200)
commitfbbbca843d43dd24b78160bc41826fa9d0c677b8
treee8931fb211e927dd778ed24f036e617c002d5cb7
parent487d4528be9fce621d2a7111fcb16056a0048ad8
dmm/bm86x: improve robustness of secondary display parsing

Return with unset MQ when parsing the number value for the secondary
display of BM86x fails. So that no invalid measurement result gets sent
to the session bus.

Reported-By: a helpful compiler warning
../src/dmm/bm86x.c:290:3: warning: Value stored to 'ret' is never read
                ret = brymen_bm86x_parse_digits(&buf[9], 4, txtbuf,
src/dmm/bm86x.c