mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-18 15:25:06 -05:00
wrong i2c call again
This commit is contained in:
@@ -376,7 +376,7 @@ void LEDStripController::SetLEDsBasicI2C(std::vector<RGBColor> colors)
|
||||
{
|
||||
if(i2cport != NULL)
|
||||
{
|
||||
i2cport->i2c_smbus_read_i2c_block_data(0x08, offset, 30, serial_buf);
|
||||
i2cport->i2c_smbus_write_i2c_block_data(0x08, offset, 30, serial_buf);
|
||||
offset += 30;
|
||||
index = 0;
|
||||
}
|
||||
@@ -387,7 +387,7 @@ void LEDStripController::SetLEDsBasicI2C(std::vector<RGBColor> colors)
|
||||
{
|
||||
if(i2cport != NULL)
|
||||
{
|
||||
i2cport->i2c_smbus_read_i2c_block_data(0x08, offset, index, serial_buf);
|
||||
i2cport->i2c_smbus_write_i2c_block_data(0x08, offset, index, serial_buf);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user