From 2dfe09863649bcf85e7e0c977886c243ebab19ad Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 13 Oct 2018 17:49:04 +0200 Subject: ook: Fix two typos which affect the decoding results. --- decoders/ook/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/ook') 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: -- cgit v1.2.3-70-g09d2