summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-10-13 17:49:04 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-10-13 17:49:04 +0200
commit2dfe09863649bcf85e7e0c977886c243ebab19ad (patch)
tree6dda6febd23968d48b2d57fb856bed860bcc0da4 /decoders
parent755e4a1e70ef3de760ecdf4db67f3b2a75458143 (diff)
downloadlibsigrokdecode-2dfe09863649bcf85e7e0c977886c243ebab19ad.tar.gz
libsigrokdecode-2dfe09863649bcf85e7e0c977886c243ebab19ad.zip
ook: Fix two typos which affect the decoding results.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ook/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/ook/pd.py b/decoders/ook/pd.py
index b4971b6..d3e2eee 100644
--- a/decoders/ook/pd.py
+++ b/decoders/ook/pd.py
@@ -189,7 +189,7 @@ class Decoder(srd.Decoder):
# Filter incoming pulses to remove random noise.
if self.state == 'DECODE_TIMEOUT':
self.preamble = []
- self.edge_count == 0
+ self.edge_count = 0
self.word_first = self.samplenum
self.sample_first = self.samplenum - self.samplenumber_last
self.state = 'WAITING_FOR_PREAMBLE'
@@ -205,7 +205,7 @@ class Decoder(srd.Decoder):
self.preamble = [] # Clear buffer.
self.preamble.append([self.samplenumber_last,
pre_samples, state])
- self.edge_count == 0
+ self.edge_count = 0
self.samplenumber_last = self.samplenum
self.word_first = self.samplenum
else: