]> sigrok.org Git - libsigrokdecode.git/commit
counter: explicit option text to .wait() edge mapping
authorGerhard Sittig <redacted>
Sun, 27 May 2018 07:06:48 +0000 (09:06 +0200)
committerUwe Hermann <redacted>
Tue, 29 May 2018 21:57:48 +0000 (23:57 +0200)
commitd11290fef0450c4f9b1c0f14d7c203de6ee02695
treece206c773a54f9aa5807905aa91d8f38ea11c8c5
parent719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6
counter: explicit option text to .wait() edge mapping

The previous implementation used the fact that libsigrok's internal API
happens to use the first letter of the user visible English option text.
Two locations mapped edge choices to API literals in different ways.
Unify them, introduce an explicit option text to literal value mapping.

(Many if not all decoder implementations do that. More adjustment to use
common code could be beneficial.)
decoders/counter/pd.py