Skip to content

Commit 7c6c8a3

Browse files
authored
Merge pull request #23 from fab672000/master
Fix compile warning with latest Arduino IDEs because uint_8+1 convert…
2 parents 1e2508d + 32926d5 commit 7c6c8a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MIDIUSB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include "MIDIUSB.h"
1818

1919
#define MIDI_AC_INTERFACE pluggedInterface // MIDI AC Interface
20-
#define MIDI_INTERFACE pluggedInterface+1
20+
#define MIDI_INTERFACE ((uint8_t)(pluggedInterface+1))
2121
#define MIDI_FIRST_ENDPOINT pluggedEndpoint
2222
#define MIDI_ENDPOINT_OUT pluggedEndpoint
23-
#define MIDI_ENDPOINT_IN pluggedEndpoint+1
23+
#define MIDI_ENDPOINT_IN ((uint8_t)(pluggedEndpoint+1))
2424

2525
#define MIDI_RX MIDI_ENDPOINT_OUT
2626
#define MIDI_TX MIDI_ENDPOINT_IN

0 commit comments

Comments
 (0)