mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
etekcity: profiles are 0-indexed
so the number of profiles is actually ETEKCITY_PROFILE_MAX + 1. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -318,7 +318,8 @@ etekcity_probe(struct ratbag_device *device, const struct ratbag_id id)
|
||||
|
||||
ratbag_set_drv_data(device, drv_data);
|
||||
|
||||
device->num_profiles = ETEKCITY_PROFILE_MAX;
|
||||
/* profiles are 0-indexed */
|
||||
device->num_profiles = ETEKCITY_PROFILE_MAX + 1;
|
||||
device->num_buttons = ETEKCITY_BUTTON_MAX;
|
||||
|
||||
profile = ratbag_device_get_active_profile(device);
|
||||
|
||||
Reference in New Issue
Block a user