]> sigrok.org Git - libsigrokdecode.git/commitdiff
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)
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.


No differences found