roccat: name two fields correctly

In hindsight, these should've been obvious.
This commit is contained in:
Peter Hutterer
2022-01-20 09:30:56 +10:00
committed by Filipe Laíns
parent 755dbddfb3
commit 44a9959344

View File

@@ -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;