From 44a99593443096976cb1108a2d3787e3a2edd8c3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 20 Jan 2022 09:30:56 +1000 Subject: [PATCH] roccat: name two fields correctly In hindsight, these should've been obvious. --- src/driver-roccat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/driver-roccat.c b/src/driver-roccat.c index 9d0c276d..eb0cc53f 100644 --- a/src/driver-roccat.c +++ b/src/driver-roccat.c @@ -57,7 +57,7 @@ struct roccat_settings_report { uint8_t reportID; - uint8_t twoB; + uint8_t report_length; uint8_t profileID; uint8_t x_y_linked; uint8_t x_sensitivity; /* 0x06 means 0 */ @@ -78,8 +78,7 @@ struct roccat_settings_report { struct roccat_macro { uint8_t reportID; - uint8_t twentytwo; - uint8_t height; + uint16_t report_length; uint8_t profile; uint8_t button_index; uint8_t active; @@ -581,8 +580,7 @@ roccat_write_macro(struct ratbag_button *button, } macro->reportID = ROCCAT_REPORT_ID_MACRO; - macro->twentytwo = 0x22; - macro->height = 0x08; + macro->report_length = 0x0822; macro->profile = button->profile->index; macro->button_index = button->index; macro->active = 0x01;