summaryrefslogtreecommitdiff
path: root/decoders/transitioncounter.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/transitioncounter.py')
-rw-r--r--decoders/transitioncounter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py
index f401b15..d9956c7 100644
--- a/decoders/transitioncounter.py
+++ b/decoders/transitioncounter.py
@@ -55,7 +55,7 @@ class Decoder():
self.falling = [0] * self.channels
def start(self, metadata):
- self.unitsize = metadata["unitsize"]
+ self.unitsize = metadata['unitsize']
def report(self):
pass
@@ -65,7 +65,7 @@ class Decoder():
channel(s) of the signal."""
# We should accept a list of samples and iterate...
- for sample in sampleiter(data["data"], self.unitsize):
+ for sample in sampleiter(data['data'], self.unitsize):
# TODO: Eliminate the need for ord().
s = ord(sample.data)