Skip to content

Commit e311c2f

Browse files
committed
Move interface check out of Teensy block
This definition is required for all boards, not only for the Teensy
1 parent b78d343 commit e311c2f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/XInput.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
#include "XInput.h"
2828

29+
#ifndef USB_XINPUT
30+
#warning "USB type is not set to XInput in boards menu! Board will not behave as an XInput device"
31+
#endif
32+
2933
// Teensy 3.1-3.2: __MK20DX256__
3034
// Teensy LC: __MKL26Z64__
3135
// Teensy 3.5: __MK64FX512__
@@ -34,11 +38,6 @@
3438
#if defined(TEENSYDUINO) && \
3539
(defined(__MK20DX256__) || defined(__MKL26Z64__) || \
3640
defined(__MK64FX512__) || defined(__MK66FX1M0__))
37-
38-
#ifndef USB_XINPUT
39-
#warning "USB type is not set to XInput in boards menu! Board will not behave as an XInput device"
40-
#endif
41-
4241
#else
4342
#warning "Not a supported board! Must use Teensy 3.1/3.2, LC, 3.5, or 3.6"
4443
#endif

0 commit comments

Comments
 (0)