diff --git a/src/hidpp10.c b/src/hidpp10.c index f5ad3678..a5f91d96 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -441,7 +441,7 @@ hidpp10_get_profile(struct hidpp10_device *dev, int8_t number, struct hidpp10_pr profile.num_buttons = PROFILE_NUM_BUTTONS; for (i = 0; i < PROFILE_NUM_BUTTONS; i++) { union _hidpp10_button_binding *b = &p->buttons[i]; - union hidpp10_buttons *button = &profile.buttons[i]; + union hidpp10_button *button = &profile.buttons[i]; button->any.type = b->any.type; diff --git a/src/hidpp10.h b/src/hidpp10.h index ea87d37d..c1f2f0c8 100644 --- a/src/hidpp10.h +++ b/src/hidpp10.h @@ -135,7 +135,7 @@ struct hidpp10_profile { bool angle_correction; uint8_t default_dpi_mode; uint16_t refresh_rate; - union hidpp10_buttons { + union hidpp10_button { struct { uint8_t type; } any; struct { uint8_t type;