Skip to content

Commit c5cb5f0

Browse files
authored
feat(midi): add more commentaries
1 parent f3bd145 commit c5cb5f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cores/esp32/Arduino.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ size_t getArduinoLoopTaskStackSize(void);
223223
}
224224

225225
#define ESP32_USB_MIDI_DEFAULT_NAME "TinyUSB MIDI"
226+
/**
227+
* @brief Set the current device name
228+
* 1. Name set via constructor (if any)
229+
* 2. Name set via SET_USB_MIDI_DEVICE_NAME() macro (if defined)
230+
* 3. Default name "TinyUSB MIDI"
231+
* If device name is set as "", it will be ignored
232+
*/
226233
#define SET_USB_MIDI_DEVICE_NAME(name) \
227234
const char* getUSBMIDIDefaultDeviceName() { \
228235
if (strlen(name) == 0) { \

0 commit comments

Comments
 (0)