mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
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:
committed by
Peter Hutterer
parent
ae53f6123b
commit
c12edcd4c7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user