From 701c1b7d3674a5683a47c176acfeab7d130ed565 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 26 Aug 2015 11:31:41 -0400 Subject: [PATCH] etekcity: the mouse has ten buttons, not nine the button index starts at 0, so we need to add 1 to the max button number. Signed-off-by: Benjamin Tissoires --- src/driver-etekcity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-etekcity.c b/src/driver-etekcity.c index 9a0f4fad..d0f401cc 100644 --- a/src/driver-etekcity.c +++ b/src/driver-etekcity.c @@ -367,7 +367,7 @@ etekcity_probe(struct ratbag_device *device, const struct ratbag_id id) ratbag_set_drv_data(device, drv_data); /* profiles are 0-indexed */ - ratbag_device_init_profiles(device, ETEKCITY_PROFILE_MAX + 1, ETEKCITY_BUTTON_MAX); + ratbag_device_init_profiles(device, ETEKCITY_PROFILE_MAX + 1, ETEKCITY_BUTTON_MAX + 1); profile = ratbag_device_get_active_profile(device);