mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
hidpp20: do not mixed hex and decimal
because this is bad Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -1476,8 +1476,8 @@ hidpp20_onboard_profiles_allocate(struct hidpp20_device *device,
|
||||
profiles->num_buttons = min(info.button_count, 16);
|
||||
profiles->num_modes = HIDPP20_DPI_COUNT;
|
||||
profiles->num_leds = HIDPP20_LED_COUNT;
|
||||
profiles->has_g_shift = (info.mechanical_layout & 0x03) == 2;
|
||||
profiles->has_dpi_shift = ((info.mechanical_layout & 0x0c) >> 2) == 2;
|
||||
profiles->has_g_shift = (info.mechanical_layout & 0x03) == 0x02;
|
||||
profiles->has_dpi_shift = ((info.mechanical_layout & 0x0c) >> 2) == 0x02;
|
||||
switch(info.various_info & 0x07) {
|
||||
case 1:
|
||||
profiles->corded = 1;
|
||||
|
||||
Reference in New Issue
Block a user