]> sigrok.org Git - libsigrok.git/commit
serial-dmm: print data bytes according to specific meter's packet length
authorGerhard Sittig <redacted>
Sat, 29 Sep 2018 18:46:45 +0000 (20:46 +0200)
committerUwe Hermann <redacted>
Sat, 13 Oct 2018 13:57:01 +0000 (15:57 +0200)
commit75aaf967e33db48a0f02b2f52abcd3139b426c0c
tree3c6403d86626ece818b93a61b106a3284683910d
parentf1d0755b73d3b2302b66aa91d1857a90b62cb99f
serial-dmm: print data bytes according to specific meter's packet length

The previous implementation always dumped 23 data bytes for received
packets. This could result in truncated diagnostics information, and/or
access to invalid buffer content.

Rephrase the packet dump routine such that the specific meter's exact
packet length gets dumped, and use the common hex dump support code.
src/hardware/serial-dmm/protocol.c