hidpp10: Fix LED read/write

With this the LEDs can be read and written on the G9.

The G9 is as far as I know the only hid++1.0 mouse with RGB LED. The
other mice are monochrome.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2017-10-10 23:13:54 +02:00
committed by Peter Hutterer
parent 9a74e30c64
commit e063aa3d2a
3 changed files with 49 additions and 0 deletions

View File

@@ -1515,6 +1515,9 @@ hidpp10_read_profile(struct hidpp10_device *dev, uint8_t number)
hidpp10_fill_buttons(dev, profile, buttons, PROFILE_NUM_BUTTONS);
break;
case HIDPP10_PROFILE_G9:
profile->red = p9->red;
profile->green = p9->green;
profile->blue = p9->blue;
profile->default_dpi_mode = p9->default_dpi_mode;
profile->refresh_rate = p9->usb_refresh_rate ? 1000/p9->usb_refresh_rate : 0;