summaryrefslogtreecommitdiff
path: root/decoders/midi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-10-16 09:35:27 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-10-16 11:37:13 +0200
commit7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84 (patch)
tree0929b5e10db8df4147b31623c6ef2d67c80fd9c1 /decoders/midi
parentbd6594c0cdae0a525e147c6e33e496ff87823d16 (diff)
downloadlibsigrokdecode-7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84.tar.gz
libsigrokdecode-7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84.zip
uart: Emit databyte and bits list at the same time.
This will allow for much simpler code in stacked PDs. Adapt stacked PDs to new API.
Diffstat (limited to 'decoders/midi')
-rw-r--r--decoders/midi/pd.py3
1 files changed, 3 insertions, 0 deletions
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.