Skip to content

Commit cfb534f

Browse files
committed
Combined debug print and USB type warning
These will always print together, so it makes more sense to combine them and not needlessly clutter the output window.
1 parent 19c694c commit cfb534f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/XInput.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "XInput.h"
2828

2929
#ifndef USB_XINPUT
30-
#warning "USB type is not set to XInput in boards menu! Board will not behave as an XInput device"
30+
#warning "USB type is not set to XInput in boards menu! Using debug print - board will not behave as an XInput device"
3131
#endif
3232

3333
#if defined(TEENSYDUINO)
@@ -331,7 +331,6 @@ int XInputGamepad::send() {
331331
newData = false;
332332
return XInputUSB::send(tx, sizeof(tx));
333333
#else
334-
#warning "Using debug output for XInput send()"
335334
printDebug();
336335
return sizeof(tx);
337336
#endif

0 commit comments

Comments
 (0)