summaryrefslogtreecommitdiff
path: root/decoders/nrf905/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-05-26 22:06:03 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2020-05-26 22:09:44 +0200
commitfc0544b76d5ee1d41e145a5ee579c14f899b7a66 (patch)
tree5fff5b80aac486b693a746450f75bcb66765f587 /decoders/nrf905/pd.py
parent76de503871ada561290040204d3d8188b1ace336 (diff)
downloadlibsigrokdecode-fc0544b76d5ee1d41e145a5ee579c14f899b7a66.tar.gz
libsigrokdecode-fc0544b76d5ee1d41e145a5ee579c14f899b7a66.zip
nrf905: More readable annotation byte values.
Drop the 0x prefix for each byte in annotations (for improved readability). Also, use 02X instead of 02x (printf-style formats).
Diffstat (limited to 'decoders/nrf905/pd.py')
-rw-r--r--decoders/nrf905/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/nrf905/pd.py b/decoders/nrf905/pd.py
index cc22e93..3192c47 100644
--- a/decoders/nrf905/pd.py
+++ b/decoders/nrf905/pd.py
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
ss, es = cmd_bytes[1][1], 0
data = ''
for byte in cmd_bytes[1:]:
- data += '0x' + format(byte[0], '02x') + ' '
+ data += format(byte[0], '02X') + ' '
es = byte[2]
self.put(ss, es, self.out_ann, [ann, [prefix + data]])