CrucialController: force mode to static before setting direct colors

This fixes some misbehaving Ballistix sticks that require a mode reset
before they actually apply colors as intended.
This commit is contained in:
K900 2020-11-17 10:27:17 +03:00 committed by Adam Honse
parent 6347feb575
commit 7cfdaaa501

View file

@ -80,6 +80,8 @@ void CrucialController::SendEffectMode(unsigned char mode, unsigned char speed)
void CrucialController::SendDirectColors(RGBColor* color_buf)
{
SetMode(CRUCIAL_MODE_STATIC);
//Red Channels
CrucialRegisterWrite(0x8300, RGBGetRValue(color_buf[0]));
CrucialRegisterWrite(0x8301, RGBGetRValue(color_buf[1]));