]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/midi/pd.py
uart: Emit databyte and bits list at the same time.
[libsigrokdecode.git] / decoders / midi / pd.py
index 296cee47e12be8d53fcc8452a32dac9318f1b0a9..5915976c164535d42c10d29b920f9a81795777a3 100644 (file)
@@ -175,6 +175,9 @@ class Decoder(srd.Decoder):
 
         self.ss, self.es = ss, es
 
+        # We're only interested in the byte value (not individual bits).
+        pdata = pdata[0]
+
         # Short MIDI overview:
         #  - Status bytes are 0x80-0xff, data bytes are 0x00-0x7f.
         #  - Most messages: 1 status byte, 1-2 data bytes.