We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d0cfe commit 092e5b1Copy full SHA for 092e5b1
1 file changed
src/XInput.cpp
@@ -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, sizeof(rx));
+ const int bytesRecv = XInputUSB::recv(rx, sizeof(rx));
350
351
// Only process if received 3 or more bytes (min valid packet size)
352
if (bytesRecv >= 3) {
0 commit comments