]> sigrok.org Git - libsigrok.git/commit - src/hardware/rdtech-um/protocol.c
rdtech-um: tone down and extend diagnostics messages
authorGerhard Sittig <redacted>
Wed, 15 Mar 2023 17:03:01 +0000 (18:03 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commitbcbf2b5953328142d99ef15bbd76cd703317f512
tree60e59d65fe6a597bca80c93a6083b94c398d1c5b
parent8ff25aa9b285edca280b2abc95382a8a5ba785d6
rdtech-um: tone down and extend diagnostics messages

Reflect tested conditions in diagnostics messages, and tell more
conditions apart where possible. Take the user's perspective in these
messages.

Address programming style while we are here: Prefer read_u16be() over
RB16() for robustness. Use intermediate variables to avoid repeated
converter calls. Transparently advance over the received data length
(the read size and the separated increment had no perceivable relation
in the source code).
src/hardware/rdtech-um/protocol.c