From 30d775b095a4b76e5fa755b19d5521affa3c053c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 4 May 2016 03:42:24 +0200 Subject: mdio: Add 'TURNAROUND' long/full annotation. (useful in GUIs for displaying more useful annotations at certain zoom levels) --- decoders/mdio/pd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'decoders/mdio') diff --git a/decoders/mdio/pd.py b/decoders/mdio/pd.py index 2900444..873079a 100644 --- a/decoders/mdio/pd.py +++ b/decoders/mdio/pd.py @@ -273,9 +273,10 @@ class Decoder(srd.Decoder): def state_DATA(self, mdio): if self.data == -1: self.data = 0 - self.putff([2, ['TA', 'T']]) + self.putff([2, ['TURNAROUND', 'TA', 'T']]) if self.ta_invalid: - self.putff([4, ['TA%s' % self.ta_invalid, 'TA', 'T']]) + self.putff([4, ['TURNAROUND%s' % self.ta_invalid, + 'TA%s' % self.ta_invalid, 'TA', 'T']]) self.ss_frame_field = self.samplenum self.data_bits -= 1 self.data |= mdio << self.data_bits -- cgit v1.2.3-70-g09d2