increase max number of report rates to 8

This is needed for the logitech G600
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2018-07-15 23:26:40 +02:00
committed by Thomas H. P. Andersen
parent d81c68d94f
commit 7c65b0b4a9
2 changed files with 2 additions and 2 deletions

View File

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

View File

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