From 2eb6af30c323a8e3f692f1030f2726b661745f6d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 10 Nov 2018 18:48:37 +0100 Subject: x2444m: Add some shorter annotation strings as well. --- decoders/x2444m/pd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'decoders/x2444m') diff --git a/decoders/x2444m/pd.py b/decoders/x2444m/pd.py index 751e6d3..2fa4d38 100644 --- a/decoders/x2444m/pd.py +++ b/decoders/x2444m/pd.py @@ -64,10 +64,11 @@ class Decoder(srd.Decoder): def putreadwrite(self, ss, es, reg, idx, addr, value): self.put(ss, es, self.out_ann, - [idx, ['%s: %s => 0x%4.4x' % (reg, addr, value)]]) + [idx, ['%s: %s => 0x%4.4x' % (reg, addr, value), + '%s: %s => 0x%4.4x' % (reg[0], addr, value), reg[0]]]) def putcmd(self, ss, es, reg, idx): - self.put(ss, es, self.out_ann, [idx, ['%s' % reg]]) + self.put(ss, es, self.out_ann, [idx, [reg, reg[0]]]) def decode(self, ss, es, data): ptype, mosi, miso = data -- cgit v1.2.3-70-g09d2