summaryrefslogtreecommitdiff
path: root/decoders/am230x
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 20:05:42 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 20:39:48 +0200
commit9e208e00f7b90c7ded552e84bcc5540be39f3e48 (patch)
treed25eb17be55d06acd018d523af3c7a721bf4896d /decoders/am230x
parent95435ac233c861b51da34862894f2db7a681be3c (diff)
downloadlibsigrokdecode-9e208e00f7b90c7ded552e84bcc5540be39f3e48.tar.gz
libsigrokdecode-9e208e00f7b90c7ded552e84bcc5540be39f3e48.zip
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.
Diffstat (limited to 'decoders/am230x')
0 files changed, 0 insertions, 0 deletions