fixing bug that would stop the mouse from updating color

This commit is contained in:
B Horn
2020-05-17 13:18:28 +01:00
committed by Adam Honse
parent cf4b421abd
commit 30a1bc9893

View File

@@ -88,13 +88,17 @@ void SteelSeriesRivalController::SetColor
{
char usb_buf[9];
memset(usb_buf, 0x00, sizeof(usb_buf));
switch (proto) {
switch (proto)
{
case RIVAL_100:
usb_buf[0x00] = 0x05;
usb_buf[0x01] = 0x00;
break;
case RIVAL_300:
usb_buf[0x00] = 0x08;
usb_buf[0x01] = zone_id;
break;
}
usb_buf[0x02] = red;
usb_buf[0x03] = green;