summaryrefslogtreecommitdiff
path: root/decoders/transitioncounter.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/transitioncounter.py')
-rw-r--r--decoders/transitioncounter.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py
index 1b10518..f401b15 100644
--- a/decoders/transitioncounter.py
+++ b/decoders/transitioncounter.py
@@ -42,11 +42,7 @@ class Decoder():
probes = {}
options = {}
- def __init__(self, unitsize, **kwargs):
- # Metadata comes in here, we don't care for now.
- # print kwargs
- self.unitsize = unitsize
-
+ def __init__(self, **kwargs):
self.probes = Decoder.probes.copy()
# TODO: Don't hardcode the number of channels.
@@ -58,6 +54,9 @@ class Decoder():
self.rising = [0] * self.channels
self.falling = [0] * self.channels
+ def start(self, metadata):
+ self.unitsize = metadata["unitsize"]
+
def report(self):
pass