]> sigrok.org Git - libsigrok.git/commit
uni-t-ut32x: use ASCII literals in packet parser, symbols for magic numbers
authorGerhard Sittig <redacted>
Thu, 5 Oct 2017 22:09:44 +0000 (00:09 +0200)
committerUwe Hermann <redacted>
Sun, 13 Jan 2019 18:34:10 +0000 (19:34 +0100)
commit4b3197828d53587db7111e275390cc4857c2fdae
treecc2c569ee9b320dfb54b8e1fd32727d9b9be84a4
parent2631d9320d757675abfaa30f8f2f287be79fa2fd
uni-t-ut32x: use ASCII literals in packet parser, symbols for magic numbers

Slightly unobfuscate the UT32x packet parser. The protocol is mostly
ASCII based, checks for hex numbers may be unexpected. Use symbolic
identifiers for the packet length and some special characters.
src/hardware/uni-t-ut32x/protocol.c
src/hardware/uni-t-ut32x/protocol.h