diff options
Diffstat (limited to 'decoders/graycode')
-rw-r--r-- | decoders/graycode/pd.py | 2 |
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 |