diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 20:05:42 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 20:39:48 +0200 |
commit | 9e208e00f7b90c7ded552e84bcc5540be39f3e48 (patch) | |
tree | d25eb17be55d06acd018d523af3c7a721bf4896d /decoders/cc1101 | |
parent | 95435ac233c861b51da34862894f2db7a681be3c (diff) | |
download | libsigrokdecode-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/cc1101')
0 files changed, 0 insertions, 0 deletions