X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmdio%2Fpd.py;h=3580acc1cb888ca7c10a4b41329d20009e3d6b09;hb=10aeb8ea8b183394cebc0033f048f49f4262b57d;hp=7c2fc5f3039b465bbe65fb5055c8eb21848d1c85;hpb=ecb0b96d4a4d0021b41ffebec0df219338aa3724;p=libsigrokdecode.git diff --git a/decoders/mdio/pd.py b/decoders/mdio/pd.py index 7c2fc5f..3580acc 100644 --- a/decoders/mdio/pd.py +++ b/decoders/mdio/pd.py @@ -62,6 +62,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.illegal_bus = 0 self.samplenum = -1 self.clause45_addr = -1 # Clause 45 is context sensitive.