Skip to content

Commit 98c8cd8

Browse files
committed
Only print new data on debug send
This makes it easier to follow changes to the debug data stream and helps debug the changing state of 'newData' itself.
1 parent 3950120 commit 98c8cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XInput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ boolean XInputController::connected() {
438438
//Send an update packet to the PC
439439
int XInputController::send() {
440440
if (!newData) return 0; // TX data hasn't changed
441-
#ifdef USB_XINPUT
442441
newData = false;
442+
#ifdef USB_XINPUT
443443
return XInputUSB::send(tx, sizeof(tx));
444444
#else
445445
printDebug();

0 commit comments

Comments
 (0)