X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmidi%2Fpd.py;fp=decoders%2Fmidi%2Fpd.py;h=5915976c164535d42c10d29b920f9a81795777a3;hp=296cee47e12be8d53fcc8452a32dac9318f1b0a9;hb=7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84;hpb=bd6594c0cdae0a525e147c6e33e496ff87823d16 diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index 296cee4..5915976 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -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.