From fc0544b76d5ee1d41e145a5ee579c14f899b7a66 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 26 May 2020 22:06:03 +0200 Subject: 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). --- decoders/nrf905/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/nrf905') 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]]) -- cgit v1.2.3-70-g09d2