]> sigrok.org Git - libsigrokdecode.git/commit
caliper: use common code for packet timeout
authorGerhard Sittig <redacted>
Sat, 18 Jul 2020 18:05:42 +0000 (20:05 +0200)
committerGerhard Sittig <redacted>
Sat, 18 Jul 2020 18:39:48 +0000 (20:39 +0200)
commit9e208e00f7b90c7ded552e84bcc5540be39f3e48
treed25eb17be55d06acd018d523af3c7a721bf4896d
parent95435ac233c861b51da34862894f2db7a681be3c
caliper: use common code for packet timeout

The previous implementation unconditionally waited for up to 1ms, and
optionally handled the user configured timeout period. Use common code
instead to handle the full span of the timeout period. Which somewhat
unclutters the .decode() routine's body by eliminating an unnecessary
step in the sequence. This change also reduces indentation, and prefers
Python's .format() over the old syntax.
decoders/caliper/pd.py