]> sigrok.org Git - libsigrok.git/commit
dmm/metex14: unbreak packet request helper return code
authorGerhard Sittig <redacted>
Tue, 6 Oct 2020 18:59:27 +0000 (20:59 +0200)
committerGerhard Sittig <redacted>
Tue, 6 Oct 2020 18:59:27 +0000 (20:59 +0200)
commitd7838e48046aa9c46966df2e3ee3bfba3d43a2e3
tree40123808b471af245c095d768a35d06ba10da5da
parent1f8ef363cb87ff425dec2b81f13e06bb15ed6e9c
dmm/metex14: unbreak packet request helper return code

Return SR_OK in case of successful transmission of a packet request. The
previous implementation passed the serial layer's verbatim return value,
which was non-negative non-null (read: above zero) in case of success,
which is none of the expected return codes of a packet request routine.

This amends commit 379e95c587e1d and completes the adjustment which was
started in commit a4be2b327be8. The issue has gone unnoticed in the past
since it took not effect. The serial-dmm caller only tested for negative
return values.
src/dmm/metex14.c