Update MIDI.hpp
fixed errors (return -> return *this where needed)
This commit is contained in:
parent
2012e2a84a
commit
e1035a03f7
|
|
@ -120,7 +120,7 @@ template<class Transport, class Settings, class Platform>
|
|||
MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings, Platform>::send(const MidiMessage& inMessage)
|
||||
{
|
||||
if (!inMessage.valid)
|
||||
return;
|
||||
return *this;
|
||||
|
||||
if (mTransport.beginTransmission(inMessage.type))
|
||||
{
|
||||
|
|
@ -173,7 +173,7 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
|
|||
inChannel == MIDI_CHANNEL_OMNI ||
|
||||
inType < 0x80)
|
||||
{
|
||||
return; // Don't send anything
|
||||
return *this; // Don't send anything
|
||||
}
|
||||
// Protection: remove MSBs on data
|
||||
inData1 &= 0x7f;
|
||||
|
|
@ -459,7 +459,7 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
|
|||
break;
|
||||
default:
|
||||
// Invalid Common marker
|
||||
return;
|
||||
return *this;
|
||||
}
|
||||
|
||||
if (mTransport.beginTransmission(inType))
|
||||
|
|
|
|||
Loading…
Reference in New Issue