hidpp20: fix special button mapping
fix
MODIFY
src/hidpp20.c
src/hidpp20.c
@@ -2200,16 +2200,15 @@ static const enum ratbag_button_action_special hidpp20_profiles_specials[] = {
[0x02] = RATBAG_BUTTON_ACTION_SPECIAL_WHEEL_RIGHT,
[0x03] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_UP,
[0x04] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_DOWN,
- [0x05] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_DEFAULT,
- [0x06] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_CYCLE_UP,
+ [0x05] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_CYCLE_UP,
+ [0x06] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_DEFAULT,
[0x07] = RATBAG_BUTTON_ACTION_SPECIAL_RESOLUTION_ALTERNATE,
- [0x08] = RATBAG_BUTTON_ACTION_SPECIAL_INVALID,
- [0x09] = RATBAG_BUTTON_ACTION_SPECIAL_INVALID,
+ [0x08] = RATBAG_BUTTON_ACTION_SPECIAL_PROFILE_UP,
+ [0x09] = RATBAG_BUTTON_ACTION_SPECIAL_PROFILE_DOWN,
[0x0a] = RATBAG_BUTTON_ACTION_SPECIAL_PROFILE_CYCLE_UP,
[0x0b] = RATBAG_BUTTON_ACTION_SPECIAL_SECOND_MODE,
- [0x0c] = RATBAG_BUTTON_ACTION_SPECIAL_BATTERY_LEVEL,
- [0x0d ... 0xff] = RATBAG_BUTTON_ACTION_SPECIAL_INVALID,
+ [0x0c ... 0xff] = RATBAG_BUTTON_ACTION_SPECIAL_INVALID,
};
enum ratbag_button_action_special

hidpp20: fix special button mapping
fix #348

Signed-off-by: Ogier Bouvier <obouvier@logitech.com>