mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
The command get_profile can either return an index in the directory (in the page 0x01 of the memory) or an absolute address. If the address is returned, it is unclear whether the directory is updated. This commit also includes changes from Peter: hidpp10: if the profile index exceeds the number of directory index, use 0 hidpp10: factor out directory fetching hidpp10: use the profile directory only in hidpp10_get_profile Fixes #26 Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>