From: Matthias Kunnen Date: Fri, 8 Dec 2023 13:48:42 +0000 (+0100) Subject: timing: Allow resetting counter on any edge X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=80ca56ac7000895cc51ec4244de80a5034cc0c27;p=libsigrokdecode.git timing: Allow resetting counter on any edge --- diff --git a/decoders/counter/pd.py b/decoders/counter/pd.py index f1134bd..bc26d94 100644 --- a/decoders/counter/pd.py +++ b/decoders/counter/pd.py @@ -53,7 +53,7 @@ class Decoder(srd.Decoder): 'values': ('any', 'rising', 'falling')}, {'id': 'divider', 'desc': 'Count divider (word width)', 'default': 0}, {'id': 'reset_edge', 'desc': 'Edge which clears counters (reset)', - 'default': 'falling', 'values': ('rising', 'falling')}, + 'default': 'falling', 'values': ('any', 'rising', 'falling')}, {'id': 'edge_off', 'desc': 'Edge counter value after start/reset', 'default': 0}, {'id': 'word_off', 'desc': 'Word counter value after start/reset', 'default': 0}, {'id': 'dead_cycles', 'desc': 'Ignore this many edges after reset', 'default': 0},