summaryrefslogtreecommitdiff
path: root/decoders/graycode/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/graycode/pd.py')
-rw-r--r--decoders/graycode/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/graycode/pd.py b/decoders/graycode/pd.py
index 1211c69..ef5d513 100644
--- a/decoders/graycode/pd.py
+++ b/decoders/graycode/pd.py
@@ -175,7 +175,7 @@ class Decoder(srd.Decoder):
if self.options['edges']:
self.turns.set(self.samplenum, self.count.get() // self.options['edges'])
- if self.samplerate is not None:
+ if self.samplerate:
period = (curtime - prevtime) / self.samplerate
freq = abs(phasedelta_raw) / period