We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d1e396 commit e6d0448Copy full SHA for e6d0448
1 file changed
src/XInput.cpp
@@ -330,7 +330,7 @@ int XInputGamepad::send() {
330
if (!newData) return 0; // TX data hasn't changed
331
#ifdef USB_XINPUT
332
newData = false;
333
- return XInputUSB::send(tx);
+ return XInputUSB::send(tx, sizeof(tx));
334
#else
335
#warning "Using debug output for XInput send()"
336
printDebug();
@@ -346,7 +346,7 @@ int XInputGamepad::receive() {
346
347
// Grab packet and store it in rx array
348
uint8_t rx[8];
349
- int bytesRecv = XInputUSB::recv(rx);
+ int bytesRecv = XInputUSB::recv(rx, sizeof(rx));
350
351
const uint8_t PacketType = rx[0];
352
0 commit comments