From: Uwe Hermann Date: Wed, 4 May 2016 01:42:24 +0000 (+0200) Subject: mdio: Add 'TURNAROUND' long/full annotation. X-Git-Tag: libsigrokdecode-0.5.0~179 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=30d775b095a4b76e5fa755b19d5521affa3c053c;p=libsigrokdecode.git mdio: Add 'TURNAROUND' long/full annotation. (useful in GUIs for displaying more useful annotations at certain zoom levels) --- 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