diff options
-rw-r--r-- | decoders/ook/pd.py | 4 |
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: |