mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidpp20: fix reading cluster info in the 8071 feature
TBH I don't know why I wrote the original code in the first place, it clearly doesn't follow the spec. Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
committed by
Peter Hutterer
parent
cb0b458824
commit
a4d19efb93
@@ -1082,8 +1082,8 @@ hidpp20_rgb_effects_get_cluster_info(struct hidpp20_device *device,
|
||||
info->effect_index = msg.msg.parameters[1];
|
||||
|
||||
info->location = get_unaligned_be_u16(&msg.msg.parameters[2]);
|
||||
info->num_effects = get_unaligned_be_u16(&msg.msg.parameters[4]);
|
||||
info->persistency_caps = get_unaligned_be_u16(&msg.msg.parameters[6]);
|
||||
info->num_effects = msg.msg.parameters[4];
|
||||
info->persistency_caps = msg.msg.parameters[5];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user