diff options
Diffstat (limited to 'decoders/graycode/pd.py')
-rw-r--r-- | decoders/graycode/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/graycode/pd.py b/decoders/graycode/pd.py index f500c83..1211c69 100644 --- a/decoders/graycode/pd.py +++ b/decoders/graycode/pd.py @@ -101,6 +101,9 @@ class Decoder(srd.Decoder): annotation_rows = tuple((u, v, (i,)) for i, (u, v) in enumerate(annotations)) def __init__(self): + self.reset() + + def reset(self): self.num_channels = 0 self.samplerate = None self.last_n = deque() |