Skip to content

Commit 4e4eade

Browse files
HahUKCalcProgrammer1
authored andcommitted
Pad commands for 0x62 with 4 zero bytes
1 parent 9f7812b commit 4e4eade

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Controllers/GigabyteRGBFusionGPUController/GigabyteRGBFusionGPUController.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ void RGBFusionGPUController::SetColor(unsigned char red, unsigned char green, un
3636
bus->i2c_smbus_write_byte(dev, red);
3737
bus->i2c_smbus_write_byte(dev, green);
3838
bus->i2c_smbus_write_byte(dev, blue);
39+
40+
// Pad commands with 4 zero-bytes for NVIDIA_RTX3060_DEV
41+
if (dev == 0x62)
42+
{
43+
bus->i2c_smbus_write_byte(dev, 0x00);
44+
bus->i2c_smbus_write_byte(dev, 0x00);
45+
bus->i2c_smbus_write_byte(dev, 0x00);
46+
bus->i2c_smbus_write_byte(dev, 0x00);
47+
}
3948
}
4049

4150
void RGBFusionGPUController::SetMode(unsigned char mode, unsigned char speed)
@@ -44,4 +53,13 @@ void RGBFusionGPUController::SetMode(unsigned char mode, unsigned char speed)
4453
bus->i2c_smbus_write_byte(dev, mode);
4554
bus->i2c_smbus_write_byte(dev, speed);
4655
bus->i2c_smbus_write_byte(dev, 0x63);
56+
57+
// Pad commands with 4 zero-bytes for NVIDIA_RTX3060_DEV
58+
if (dev == 0x62)
59+
{
60+
bus->i2c_smbus_write_byte(dev, 0x00);
61+
bus->i2c_smbus_write_byte(dev, 0x00);
62+
bus->i2c_smbus_write_byte(dev, 0x00);
63+
bus->i2c_smbus_write_byte(dev, 0x00);
64+
}
4765
}

0 commit comments

Comments
 (0)