summaryrefslogtreecommitdiff
path: root/decoders/x2444m
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-11-10 18:48:37 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2018-11-10 18:48:37 +0100
commit2eb6af30c323a8e3f692f1030f2726b661745f6d (patch)
tree5202fe28d3e2715cb0580b6639b72332661bf992 /decoders/x2444m
parente7a4360d9ceddc295302baf42fe607fd366de93f (diff)
downloadlibsigrokdecode-2eb6af30c323a8e3f692f1030f2726b661745f6d.tar.gz
libsigrokdecode-2eb6af30c323a8e3f692f1030f2726b661745f6d.zip
x2444m: Add some shorter annotation strings as well.
Diffstat (limited to 'decoders/x2444m')
-rw-r--r--decoders/x2444m/pd.py5
1 files changed, 3 insertions, 2 deletions
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