summaryrefslogtreecommitdiff
path: root/decoders/midi
diff options
context:
space:
mode:
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 c2d3f72..feb581c 100644
--- a/decoders/midi/pd.py
+++ b/decoders/midi/pd.py
@@ -44,6 +44,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.status_byte = 0
self.explicit_status_byte = False