@@ -107,7 +107,7 @@ void MidiInterface<Transport, Settings, Platform>::begin(Channel inChannel)
107107
108108/* ! \brief Send a MIDI message.
109109\param inMessage The message
110-
110+
111111 This method is used when you want to send a Message that has not been constructed
112112 by the library, but by an external source.
113113 This method does *not* check against any of the constraints.
@@ -119,12 +119,12 @@ void MidiInterface<Transport, Settings, Platform>::send(const MidiMessage& inMes
119119{
120120 if (!inMessage.valid )
121121 return ;
122-
122+
123123 if (mTransport .beginTransmission (inMessage.type ))
124124 {
125125 const StatusByte status = getStatus (inMessage.type , inMessage.channel );
126126 mTransport .write (status);
127-
127+
128128 if (inMessage.type != MidiType::SystemExclusive)
129129 {
130130 if (inMessage.length > 1 ) mTransport .write (inMessage.data1 );
@@ -726,7 +726,7 @@ inline bool MidiInterface<Transport, Settings, Platform>::read(Channel inChannel
726726 sendActiveSensing ();
727727 mLastMessageSentTime = Platform::now ();
728728 }
729-
729+
730730 if (Settings::UseReceiverActiveSensing && mReceiverActiveSensingActivated && (mLastMessageReceivedTime + ActiveSensingTimeout < Platform::now ()))
731731 {
732732 mReceiverActiveSensingActivated = false ;
@@ -742,7 +742,7 @@ inline bool MidiInterface<Transport, Settings, Platform>::read(Channel inChannel
742742
743743 if (!parse ())
744744 return false ;
745-
745+
746746 #ifndef RegionActiveSending
747747
748748 if (Settings::UseReceiverActiveSensing && mMessage .type == ActiveSensing)
@@ -881,13 +881,13 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
881881 mRunningStatus_RX = InvalidType;
882882 mMessage .sysexArray [0 ] = pendingType;
883883 break ;
884-
884+
885885 case InvalidType:
886886 default :
887887 // This is obviously wrong. Let's get the hell out'a here.
888888 mLastError |= 1UL << ErrorParse; // set the ErrorParse bit
889889 if (mErrorCallback )
890- mErrorCallback (mLastError );
890+ mErrorCallback (mLastError ); // LCOV_EXCL_LINE
891891
892892 resetInput ();
893893 return false ;
@@ -902,11 +902,11 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
902902 mMessage .data1 = mPendingMessage [1 ];
903903 mMessage .data2 = 0 ; // Completed new message has 1 data byte
904904 mMessage .length = 1 ;
905-
905+
906906 mPendingMessageIndex = 0 ;
907907 mPendingMessageExpectedLength = 0 ;
908908 mMessage .valid = true ;
909-
909+
910910 return true ;
911911 }
912912 else
@@ -947,7 +947,7 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
947947 mMessage .channel = 0 ;
948948 mMessage .length = 1 ;
949949 mMessage .valid = true ;
950-
950+
951951 return true ;
952952
953953 // Exclusive
@@ -968,15 +968,15 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
968968 mMessage .valid = true ;
969969
970970 resetInput ();
971-
971+
972972 return true ;
973973 }
974974 else
975975 {
976976 // Well well well.. error.
977977 mLastError |= 1UL << ErrorParse; // set the error bits
978978 if (mErrorCallback )
979- mErrorCallback (mLastError );
979+ mErrorCallback (mLastError ); // LCOV_EXCL_LINE
980980
981981 resetInput ();
982982 return false ;
@@ -1022,9 +1022,9 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
10221022
10231023 mMessage .sysexArray [0 ] = SystemExclusiveEnd;
10241024 mMessage .sysexArray [1 ] = lastByte;
1025-
1025+
10261026 mPendingMessageIndex = 2 ;
1027-
1027+
10281028 return false ;
10291029 }
10301030
@@ -1037,9 +1037,9 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
10371037
10381038 mMessage .data1 = mPendingMessage [1 ];
10391039 // Save data2 only if applicable
1040- mMessage .data2 = mPendingMessageExpectedLength == 3 ? mPendingMessage [2 ] : 0 ;
1040+ mMessage .data2 = mPendingMessageExpectedLength == 3 ? mPendingMessage [2 ] : 0 ;
10411041 mMessage .length = mPendingMessageExpectedLength ;
1042-
1042+
10431043 // Reset local variables
10441044 mPendingMessageIndex = 0 ;
10451045 mPendingMessageExpectedLength = 0 ;
@@ -1224,7 +1224,7 @@ MidiType MidiInterface<Transport, Settings, Platform>::getTypeFromStatusByte(byt
12241224 (inStatus == Undefined_F5) ||
12251225 (inStatus == Undefined_FD))
12261226 return InvalidType; // Data bytes and undefined.
1227-
1227+
12281228 if (inStatus < 0xf0 )
12291229 // Channel message, remove channel nibble.
12301230 return MidiType (inStatus & 0xf0 );
0 commit comments