steelseries: fix length of LED cycle output report being incorrect

It probably meant to use the macro directly, not `sizeof` of it (which
made it be 4 instead of 64).
This commit is contained in:
Yaroslav Chvanov
2022-02-06 03:18:20 +03:00
committed by Peter Hutterer
parent ae53f6123b
commit c12edcd4c7

View File

@@ -893,7 +893,7 @@ steelseries_write_led_cycle(struct ratbag_led *led,
sizeof(msg.msg.parameters), cycle_spec->hid_report_type,
HID_REQ_SET_REPORT);
else
ret = ratbag_hidraw_output_report(device, msg.data, sizeof(STEELSERIES_REPORT_SIZE));
ret = ratbag_hidraw_output_report(device, msg.data, sizeof(msg.data));
if (ret < 0)
return ret;