]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mdio/pd.py
Revert "mdio: Add 'TURNAROUND' long/full annotation." in order to comply with the...
[libsigrokdecode.git] / decoders / mdio / pd.py
index 7c2fc5f3039b465bbe65fb5055c8eb21848d1c85..9ea3a27349e372fbc0d5263c4c03b6a114658af2 100644 (file)
@@ -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.
@@ -272,10 +275,9 @@ class Decoder(srd.Decoder):
     def state_DATA(self, mdio):
         if self.data == -1:
             self.data = 0
-            self.putff([2, ['TURNAROUND', 'TA', 'T']])
+            self.putff([2, ['TA', 'T']])
             if self.ta_invalid:
-                self.putff([4, ['TURNAROUND%s' % self.ta_invalid,
-                                'TA%s' % self.ta_invalid, 'TA', 'T']])
+                self.putff([4, ['TA%s' % self.ta_invalid, 'TA', 'T']])
             self.ss_frame_field = self.samplenum
         self.data_bits -= 1
         self.data |= mdio << self.data_bits