Skip to content

Commit 064882f

Browse files
dlechProject516
authored andcommitted
ev3dev hack: hid-sony: change default poll interval for PS4 controller
EV3 doesn't have enough CPU power to handle more frequent polling
1 parent 72c034e commit 064882f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-playstation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ struct dualsense_output_report {
338338
*/
339339
#define DS4_OUTPUT_HWCTL_BT_POLL_MASK 0x3F
340340
/* Default to 4ms poll interval, which is same as USB (not adjustable). */
341-
#define DS4_BT_DEFAULT_POLL_INTERVAL_MS 4
341+
#define DS4_BT_DEFAULT_POLL_INTERVAL_MS 10 /* changed for ev3dev */
342342
#define DS4_OUTPUT_HWCTL_CRC32 0x40
343343
#define DS4_OUTPUT_HWCTL_HID 0x80
344344

0 commit comments

Comments
 (0)