]> sigrok.org Git - libsigrokdecode.git/commit
counter: move some init code to the start of decode()
authorGerhard Sittig <redacted>
Sun, 27 May 2018 07:27:08 +0000 (09:27 +0200)
committerUwe Hermann <redacted>
Tue, 29 May 2018 21:57:48 +0000 (23:57 +0200)
commitdeabbb70a8c29116a116c0833b2da39def0b807b
treea904cd8745a3b0d780643e052e1e7b8a4e726647
parentf2120b9ef962c3b0054705393767efd4fb08e06c
counter: move some init code to the start of decode()

Since PD API v3 the .decode() method is called exactly once, and
contains a main loop itself. Move initialization code that sets up
.decode() related logic to the start of the .decode() routine.
decoders/counter/pd.py