Browse Source

Fixed size of rumble packet

Sam Lantinga 4 years ago
parent
commit
aa7c3eae19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_ps5.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_ps5.c

@@ -182,7 +182,7 @@ HIDAPI_DriverPS5_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
 static int
 HIDAPI_DriverPS5_RumbleJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
 {
-    Uint8 data[6];
+    Uint8 data[5];
 
     /* This works over USB, not over Bluetooth */
     SDL_zero(data);