## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2013-2016 Uwe Hermann <uwe@hermann-uwe.de>
-## Copyright (C) 2016 Chris Dreher <chrisdreher@hotmail.com>
+## Copyright (C) 2016 Chris Dreher <chrisdreher@hotmail.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
TX = 1
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'midi'
name = 'MIDI'
longname = 'Musical Instrument Digital Interface'
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.status_byte = 0
self.explicit_status_byte = False