]> sigrok.org Git - libsigrok.git/commit
center-3xx: use common signed LE16 conversion for temperature value
authorGerhard Sittig <redacted>
Mon, 23 Dec 2019 16:00:13 +0000 (17:00 +0100)
committerUwe Hermann <redacted>
Sat, 4 Apr 2020 21:25:25 +0000 (23:25 +0200)
commit56a1bf7b4b8ccb969140196e90f62178de10da19
tree6119ccc3e5d5652901b82a28ab8780a09bed7856
parentca7d442692a1785129cb5caba57c280bf5ce2a9f
center-3xx: use common signed LE16 conversion for temperature value

Prefer the common conversion helper for little endian 16bit signed data.
The previous local implementation only worked for positive values, and
yielded incorrect results for negative temperatures.

This fixes bug #1463.
src/hardware/center-3xx/protocol.c