]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nrf905/pd.py
nrf905: Drop non-existent OUTPUT_PYTHON output.
[libsigrokdecode.git] / decoders / nrf905 / pd.py
index cc22e930274c0ee0443fe426f78edf7378000004..12949fea618c1d8dc5d0b42f43b0e5e90cb9b88e 100644 (file)
@@ -85,7 +85,7 @@ class Decoder(srd.Decoder):
     desc = '433/868/933MHz transceiver chip.'
     license = 'mit'
     inputs = ['spi']
-    outputs = ['nrf905']
+    outputs = []
     tags = ['IC', 'Wireless/RF']
     annotations = (
         ('cmd', 'Command sent to the device'),
@@ -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]])