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 26c5450 commit cc53512Copy full SHA for cc53512
src/MIDIUSB.cpp
@@ -69,10 +69,10 @@ int MIDI_::getDescriptor(USBSetup& setup __attribute__((unused)))
69
return 0;
70
}
71
72
-char* MIDI_GetShortName()
+uint8_t MIDI_::getShortName(char* name)
73
{
74
- static char* name = "MIDI";
75
- return name;
+ memcpy(name, "MIDI", 4);
+ return 4;
76
77
78
void MIDI_::accept(void)
src/MIDIUSB.h
@@ -196,6 +196,7 @@ class MIDI_ : public PluggableUSBModule
196
int getInterface(uint8_t* interfaceNum);
197
int getDescriptor(USBSetup& setup);
198
bool setup(USBSetup& setup);
199
+ uint8_t getShortName(char* name);
200
201
public:
202
MIDI_(void);
0 commit comments