Bugfix: Always setting light, woops
This commit is contained in:
@@ -31,6 +31,8 @@ void LightsDriver_HidBlueDot::SetPadLight(PadLightIndex index, bool value)
|
|||||||
void LightsDriver_HidBlueDot::SetLight(unsigned char* buffer, int index, bool value)
|
void LightsDriver_HidBlueDot::SetLight(unsigned char* buffer, int index, bool value)
|
||||||
{
|
{
|
||||||
buffer[2] &= ~(1 << index);
|
buffer[2] &= ~(1 << index);
|
||||||
|
|
||||||
|
if(value)
|
||||||
buffer[2] |= (1 << index);
|
buffer[2] |= (1 << index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user