Skip to content

Commit 6176235

Browse files
authored
fix wrong index in HandleStatePacket with flydigi controller (#13819)
1 parent e9c2e9b commit 6176235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/hidapi/SDL_hidapi_flydigi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static void HIDAPI_DriverFlydigi_HandleStatePacket(SDL_Joystick *joystick, SDL_D
323323
{
324324
Sint16 axis;
325325
Uint64 timestamp = SDL_GetTicksNS();
326-
if (data[0] != 0x04 && data[0] != 0xFE) {
326+
if (data[0] != 0x04 || data[1] != 0xFE) {
327327
// We don't know how to handle this report
328328
return;
329329
}

0 commit comments

Comments
 (0)