diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-06-18 20:46:40 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-06-21 17:45:15 +0200 |
commit | ce7018ca10f6c81f16e29db1e05a99192ce671d4 (patch) | |
tree | 1b01c5006a9f089f89dad0bf1206216d95b09604 /srd.c | |
parent | cbca32378d7b18a793057a7f6c4a7a19efa53376 (diff) | |
download | libsigrokdecode-ce7018ca10f6c81f16e29db1e05a99192ce671d4.tar.gz libsigrokdecode-ce7018ca10f6c81f16e29db1e05a99192ce671d4.zip |
guess_bitrate: Eliminate internal state of the decoder
Getting the first edge outside of the loop in .decode() greatly
simplifies the logic, any other edge then is just an update of the
previously collected data, determined by always equal code.
Diffstat (limited to 'srd.c')
0 files changed, 0 insertions, 0 deletions