Initialise new attributes.

This commit is contained in:
Francois Best 2016-10-07 00:58:35 +02:00
parent dc478a3656
commit bc0308223c
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,8 @@ inline MidiInterface<SerialPort, Settings>::MidiInterface(SerialPort& inSerial)
, mRunningStatus_TX(InvalidType)
, mPendingMessageExpectedLenght(0)
, mPendingMessageIndex(0)
, mCurrentRpnNumber(0xffff)
, mCurrentNrpnNumber(0xffff)
{
mNoteOffCallback = 0;
mNoteOnCallback = 0;
@ -94,6 +96,9 @@ void MidiInterface<SerialPort, Settings>::begin(Channel inChannel)
mPendingMessageIndex = 0;
mPendingMessageExpectedLenght = 0;
mCurrentRpnNumber = 0xffff;
mCurrentNrpnNumber = 0xffff;
mMessage.valid = false;
mMessage.type = InvalidType;
mMessage.channel = 0;