Skip to content

Commit f3bd145

Browse files
authored
fix(midi): move commentaries
1 parent 0d4dce2 commit f3bd145

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/USB/src/USBMIDI.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ void USBMIDI::setDeviceName(const char* name) {
6868
}
6969
}
7070

71+
/**
72+
* @brief Get the current device name
73+
* @return The device name in order of precedence:
74+
* 1. Name set via constructor (if any)
75+
* 2. Name set via SET_USB_MIDI_DEVICE_NAME() macro (if defined)
76+
* 3. Default name "TinyUSB MIDI"
77+
* If device name is set as "", it will be ignored
78+
*/
7179
USBMIDI::USBMIDI(const char* name) {
7280
if (!tinyusb_midi_interface_enabled) {
7381
setDeviceName(name);

0 commit comments

Comments
 (0)