Skip to content

Commit 3c8a955

Browse files
committed
dont compile if we don't have MIDI support underlying (nrf52840 for example)
1 parent 3796366 commit 3c8a955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adafruit_USBD_MIDI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "Adafruit_USBD_MIDI.h"
2626

27-
#if CFG_TUD_MIDI
27+
#if CFG_TUD_MIDI && defined(TUD_MIDI_DESC_HEAD_LEN)
2828

2929
//--------------------------------------------------------------------+
3030
// MACRO TYPEDEF CONSTANT ENUM DECLARATION

0 commit comments

Comments
 (0)