Swap red and blue channels in RGB Fusion 2.0 packet after it was found that they were reversed

This commit is contained in:
Adam Honse
2020-01-21 00:54:11 -06:00
parent dca3b0d733
commit 339e1e14c2

View File

@@ -77,9 +77,9 @@ void RGBFusion2Controller::SetLEDColor(unsigned int led, unsigned char red, unsi
usb_buf[0x01] = (0x20 | led);
usb_buf[0x02] = (0x01 << led );
usb_buf[0x0E] = red;
usb_buf[0x0E] = blue;
usb_buf[0x0F] = green;
usb_buf[0x10] = blue;
usb_buf[0x10] = red;
hid_send_feature_report(dev, usb_buf, 64);
@@ -118,4 +118,4 @@ void RGBFusion2Controller::SetMode(unsigned char mode)
void RGBFusion2Controller::dump()
{
}
}