diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-26 22:06:03 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-26 22:09:44 +0200 |
commit | fc0544b76d5ee1d41e145a5ee579c14f899b7a66 (patch) | |
tree | 5fff5b80aac486b693a746450f75bcb66765f587 /decoders/nrf905/pd.py | |
parent | 76de503871ada561290040204d3d8188b1ace336 (diff) | |
download | libsigrokdecode-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.py | 2 |
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]]) |