mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
SDL: fix packet handling for original version of Stadia FW
This commit is contained in:
parent
bb9e049d1d
commit
9c3aa7f055
@ -152,7 +152,8 @@ HIDAPI_DriverStadia_HandleStatePacket(SDL_Joystick *joystick, SDL_DriverStadia_C
|
|||||||
{
|
{
|
||||||
Sint16 axis;
|
Sint16 axis;
|
||||||
|
|
||||||
if (size < 11 || data[0] != 0x03) {
|
// The format is the same but the original FW will send 10 bytes and January '21 FW update will send 11
|
||||||
|
if (size < 10 || data[0] != 0x03) {
|
||||||
/* We don't know how to handle this report */
|
/* We don't know how to handle this report */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user