]> sigrok.org Git - libsigrokdecode.git/commit
guess_bitrate: Eliminate internal state of the decoder
authorGerhard Sittig <redacted>
Sun, 18 Jun 2017 18:46:40 +0000 (20:46 +0200)
committerUwe Hermann <redacted>
Wed, 21 Jun 2017 15:45:15 +0000 (17:45 +0200)
commitce7018ca10f6c81f16e29db1e05a99192ce671d4
tree1b01c5006a9f089f89dad0bf1206216d95b09604
parentcbca32378d7b18a793057a7f6c4a7a19efa53376
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.
decoders/guess_bitrate/pd.py