summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-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