From: Uwe Hermann Date: Tue, 26 May 2020 20:06:03 +0000 (+0200) Subject: nrf905: More readable annotation byte values. X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=fc0544b76d5ee1d41e145a5ee579c14f899b7a66 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). --- 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]])