From: Uwe Hermann Date: Sat, 10 Nov 2018 17:48:37 +0000 (+0100) Subject: x2444m: Add some shorter annotation strings as well. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2eb6af30c323a8e3f692f1030f2726b661745f6d;p=libsigrokdecode.git x2444m: Add some shorter annotation strings as well. --- 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