]> sigrok.org Git - libsigrokdecode.git/commit
decoders: Rephrase condition-less .wait() calls (self documentation)
authorGerhard Sittig <redacted>
Sun, 18 Jun 2017 17:27:47 +0000 (19:27 +0200)
committerUwe Hermann <redacted>
Wed, 21 Jun 2017 15:45:15 +0000 (17:45 +0200)
commit1b9ef18be867133e721681cbc20272cf5c669504
treec4854dc5d70fd4a4a1b603b9639694bbf5c8ae69
parent6e19f3257d896cfa8c1afffbdbf58a88fa3b9327
decoders: Rephrase condition-less .wait() calls (self documentation)

Telling .wait() to "skip one sample" slightly obfuscates the intent of
getting the next samples while no condition applies. Explicitly pass no
condition arguments instead, to better reflect the purpose. Coincidently
these .wait() calls will execute in slightly less expensive code paths
in the common code.
decoders/dali/pd.py
decoders/dmx512/pd.py
decoders/dsi/pd.py
decoders/em4100/pd.py
decoders/ir_rc5/pd.py
decoders/lpc/pd.py
decoders/qi/pd.py
decoders/rgb_led_ws281x/pd.py
decoders/usb_signalling/pd.py
decoders/wiegand/pd.py
decoders/z80/pd.py