]> sigrok.org Git - libsigrokdecode.git/commitdiff
decoder: Accept more forms of "unconditional wait()" (None, no args)
authorGerhard Sittig <redacted>
Sun, 5 Mar 2017 17:31:18 +0000 (18:31 +0100)
committerUwe Hermann <redacted>
Wed, 21 Jun 2017 15:45:14 +0000 (17:45 +0200)
The Decoder.wait() method expects a list of dicts, or as a special form
a single dict, to specify the conditions to wait for. An empty dict or
an empty list mean "unconditional wait", requesting the very next sample.

Accept None as well as no arguments at all in Decoder.wait() calls. This
shall better reflect the intent and slightly unobfuscate PD code, as well
as avoid creation of potentially expensive Python objects at the call site.


No differences found