Skip to content

Commit c1e4dd0

Browse files
committed
sinput: fix compiling with debug output on
1 parent 5dc8015 commit c1e4dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/hidapi/SDL_hidapi_sinput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static bool RetrieveSDLFeatures(SDL_HIDAPI_Device *device)
390390
}
391391

392392
#ifdef DEBUG_SINPUT_PROTOCOL
393-
HIDAPI_DumpPacket("SInput packet: size = %d", data, size);
393+
HIDAPI_DumpPacket("SInput packet: size = %d", data, read);
394394
#endif
395395

396396
if ((read == USB_PACKET_LENGTH) && (data[0] == SINPUT_DEVICE_REPORT_ID_INPUT_CMDDAT) && (data[1] == SINPUT_DEVICE_COMMAND_FEATURES)) {

0 commit comments

Comments
 (0)