Skip to content

Commit cf3f2bb

Browse files
committed
implement new getShortName API
1 parent b937f68 commit cf3f2bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/MIDIUSB.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ int MIDI_GetDescriptor(int8_t t)
8383
return 0;
8484
}
8585

86+
char* MIDI_GetShortName()
87+
{
88+
static char* name = "MI";
89+
return name;
90+
}
91+
8692
void MIDI_::accept(void)
8793
{
8894
ring_bufferMIDI *buffer = &midi_rx_buffer;
@@ -194,6 +200,7 @@ MIDI_::MIDI_(void)
194200
.setup = &MIDI_Setup,
195201
.getInterface = &MIDI_GetInterface,
196202
.getDescriptor = &MIDI_GetDescriptor,
203+
.getShortName = &MIDI_GetShortName,
197204
.numEndpoints = 2,
198205
.numInterfaces = 2,
199206
.endpointType = endpointType,

0 commit comments

Comments
 (0)