]> sigrok.org Git - libsigrok.git/commit
brymen-dmm: unbreak temperature response parsing
authorGerhard Sittig <redacted>
Mon, 21 Sep 2020 18:32:21 +0000 (20:32 +0200)
committerGerhard Sittig <redacted>
Mon, 21 Sep 2020 19:29:43 +0000 (21:29 +0200)
commit3f8453b274d7776ff4f0bb7a869eb6211364c190
treea74616324a6099c148d8d84e460919f5ee17ec35
parent66b349841a7db1ec143d9cec2316ece99a741d04
brymen-dmm: unbreak temperature response parsing

The BM850s temperature function response includes the C/F unit in an
unexpected position ("0.0272CE+3") which breaks number conversion. Drop
the C/F unit to unbreak the conversion.

This was observed with BM859s. Absence of the C/F unit in the response
is fatal in this implementation. If other meter firmware versions or
models don't suffer from that issue, the removal must be silent and
non-fatal.
src/hardware/brymen-dmm/parser.c