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 861abb9 commit 3f59ac6Copy full SHA for 3f59ac6
cores/esp32/Arduino.h
@@ -232,7 +232,7 @@ size_t getArduinoLoopTaskStackSize(void);
232
*/
233
#define SET_USB_MIDI_DEVICE_NAME(name) \
234
const char* getUSBMIDIDefaultDeviceName() { \
235
- if (strlen(name) == 0) { \
+ if (!name || strlen(name) == 0) { \
236
return ESP32_USB_MIDI_DEFAULT_NAME; \
237
} \
238
return name; \
0 commit comments