summaryrefslogtreecommitdiff
path: root/decoders/transitioncounter.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/transitioncounter.py')
-rw-r--r--decoders/transitioncounter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py
index 9d437d1..eaf8738 100644
--- a/decoders/transitioncounter.py
+++ b/decoders/transitioncounter.py
@@ -18,9 +18,9 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-import sigrokdecode
+import sigrokdecode as srd
-class Decoder(sigrokdecode.Decoder):
+class Decoder(srd.Decoder):
id = 'transitioncounter'
name = 'Transition counter'
longname = '...'
@@ -42,8 +42,8 @@ class Decoder(sigrokdecode.Decoder):
self.lastsample = None
def start(self, metadata):
- # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTO, 'transitioncounter')
- self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'transitioncounter')
+ # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'transitioncounter')
+ self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'transitioncounter')
def report(self):
pass