We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03171e2 commit f2f65cbCopy full SHA for f2f65cb
drivers/usb/include/usb/USBMIDI.h
@@ -118,7 +118,7 @@ class USBMIDI: public USBDevice {
118
* @param m The MIDIMessage to send
119
* @return true if the message was sent, false otherwise
120
*/
121
- bool write(MIDIMessage m);
+ bool write(const MIDIMessage& m);
122
123
/**
124
* Check if a message can be read
drivers/usb/source/USBMIDI.cpp
@@ -78,7 +78,7 @@ void USBMIDI::wait_ready()
78
}
79
80
// write plain MIDIMessage that will be converted to USBMidi event packet
81
-bool USBMIDI::write(MIDIMessage m)
+bool USBMIDI::write(const MIDIMessage& m)
82
{
83
_write_mutex.lock();
84
0 commit comments