mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
committed by
Peter Hutterer
parent
9a74e30c64
commit
e063aa3d2a
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user