From 2d020e840a02651986ccdeffe44d226485b3d229 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 22 Oct 2015 10:54:01 -0400 Subject: [PATCH] hidpp20: fix the profile size the profile contains 16 pages of 16 bytes, not only 15 Signed-off-by: Benjamin Tissoires --- src/hidpp20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidpp20.c b/src/hidpp20.c index d3a1d208..edeab4a8 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -930,7 +930,7 @@ int hidpp20_adjustable_dpi_set_sensor_dpi(struct hidpp20_device *device, #define CMD_ONBOARD_PROFILES_GET_CURRENT_DPI_INDEX 0xb0 #define CMD_ONBOARD_PROFILES_SET_CURRENT_DPI_INDEX 0xc0 -#define HIDPP20_PROFILE_SIZE (15*16) +#define HIDPP20_PROFILE_SIZE (16*16) #define HIDPP20_BUTTON_HID 0x80 int