Skip to content

Commit 42438a4

Browse files
committed
Switch board check errors to warnings
Allows the library to compile if the user is building for an unknown setup and has defined their own USB functions.
1 parent 7d7fd84 commit 42438a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/XInput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
defined(__MK64FX512__) || defined(__MK66FX1M0__))
3737

3838
#ifndef USB_XINPUT
39-
#error "USB type is not set to XInput in boards menu!"
39+
#warning "USB type is not set to XInput in boards menu! Board will not behave as an XInput device"
4040
#endif
4141

4242
#else
43-
#error "Not a supported board! Must use Teensy 3.1/3.2, LC, 3.5, or 3.6"
43+
#warning "Not a supported board! Must use Teensy 3.1/3.2, LC, 3.5, or 3.6"
4444
#endif
4545

4646
// --------------------------------------------------------

0 commit comments

Comments
 (0)