Skip to content

Commit

Permalink
increase max number of report rates to 8
Browse files Browse the repository at this point in the history
This is needed for the logitech G600
  • Loading branch information
phomes committed Jul 24, 2018
1 parent d81c68d commit 7c65b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ratbagd/ratbagd-resolution.c
Expand Up @@ -307,7 +307,7 @@ ratbagd_resolution_get_report_rates(sd_bus *bus,
{
struct ratbagd_resolution *resolution = userdata;
struct ratbag_resolution *lib_resolution = resolution->lib_resolution;
unsigned int rates[5];
unsigned int rates[8];
unsigned int nrates = ARRAY_LENGTH(rates);
int r;

Expand Down
2 changes: 1 addition & 1 deletion src/libratbag-private.h
Expand Up @@ -262,7 +262,7 @@ struct ratbag_resolution {
unsigned int dpi_y; /**< y resolution in dpi */
unsigned int hz; /**< report rate in Hz */

unsigned int rates[5];
unsigned int rates[8];
size_t nrates;

bool is_active;
Expand Down

0 comments on commit 7c65b0b

Please sign in to comment.