From e33f655f617a68630a1df86da02a3c01916a1ed3 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 24 May 2017 07:11:31 +0200 Subject: [PATCH] hidpp20: do not waste memory Currently we only support mice with 2 LEDs in the profile. No need to have 32 placeholders. Signed-off-by: Benjamin Tissoires --- src/hidpp20.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidpp20.h b/src/hidpp20.h index bec12421..e8fe6717 100644 --- a/src/hidpp20.h +++ b/src/hidpp20.h @@ -462,7 +462,7 @@ struct hidpp20_profile { uint16_t dpi[HIDPP20_DPI_COUNT]; union hidpp20_button_binding buttons[32]; union hidpp20_macro_data *macros[32]; - struct hidpp20_led leds[32]; + struct hidpp20_led leds[HIDPP20_LED_COUNT]; }; struct hidpp20_profiles {