Skip to content

Commit 4d87a83

Browse files
committed
Move send 'newData' check out of mode ifdef
Will only print to the debug output via send if the data has changed, matching the behavior of the USB out.
1 parent 8dd38de commit 4d87a83

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
@@ -306,8 +306,8 @@ uint8_t XInputGamepad::getLEDPatternID() const {
306306

307307
//Send an update packet to the PC
308308
void XInputGamepad::send() {
309-
#ifdef USB_XINPUT
310309
if (!newData) return; // TX data hasn't changed
310+
#ifdef USB_XINPUT
311311
XInputUSB::send(tx, USB_Timeout);
312312
newData = false;
313313
#else

0 commit comments

Comments
 (0)