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.
2 parents 1e2508d + 32926d5 commit 7c6c8a3Copy full SHA for 7c6c8a3
src/MIDIUSB.cpp
@@ -17,10 +17,10 @@
17
#include "MIDIUSB.h"
18
19
#define MIDI_AC_INTERFACE pluggedInterface // MIDI AC Interface
20
-#define MIDI_INTERFACE pluggedInterface+1
+#define MIDI_INTERFACE ((uint8_t)(pluggedInterface+1))
21
#define MIDI_FIRST_ENDPOINT pluggedEndpoint
22
#define MIDI_ENDPOINT_OUT pluggedEndpoint
23
-#define MIDI_ENDPOINT_IN pluggedEndpoint+1
+#define MIDI_ENDPOINT_IN ((uint8_t)(pluggedEndpoint+1))
24
25
#define MIDI_RX MIDI_ENDPOINT_OUT
26
#define MIDI_TX MIDI_ENDPOINT_IN
0 commit comments