Skip to content

Commit 89e318f

Browse files
committed
Add explicit error for USB XInput setting
1 parent 44bdf7f commit 89e318f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/XInput.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
(defined(__MK20DX256__) || defined(__MKL26Z64__) || \
3636
defined(__MK64FX512__) || defined(__MK66FX1M0__))
3737

38+
#ifndef USB_XINPUT
39+
#error "USB type is not set to XInput in boards menu!"
40+
#endif
41+
3842
#else
3943
#error "Not a supported board! Must use Teensy 3.1/3.2, LC, 3.5, or 3.6"
4044
#endif

0 commit comments

Comments
 (0)