X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Ftiming%2Fpd.py;h=61eab1ea104c03b1a45b8f646f2b16df697cf4eb;hb=e663ab183cc55fbff23da01c0fda06d366b7130b;hp=ab963bb11d33341ff564073f07c62c865f66c574;hpb=97b874bd0b6913ed52df1b8aac5e7491479fac9a;p=libsigrokdecode.git diff --git a/decoders/timing/pd.py b/decoders/timing/pd.py index ab963bb..61eab1e 100644 --- a/decoders/timing/pd.py +++ b/decoders/timing/pd.py @@ -74,6 +74,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.samplerate = None self.last_samplenum = None self.last_n = deque()