mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-13 17:34:40 -04:00
Add more sleeps to prevent mode corruption and add a function for reading the LED configuration register
This commit is contained in:
1 parent
877469cd2d
commit
f577e5ef3c
3 files changed
+49
-14
No files matched your search
@@ -55,15 +55,15 @@ void DetectPolychromeControllers(std::vector<i2c_smbus_interface*>& busses, std:
|
||||
{
|
||||
new_polychrome = new PolychromeController(busses[bus], 0x6A);
|
||||
|
||||
if(new_polychrome->GetLEDCount() != 0)
|
||||
{
|
||||
// if(new_polychrome->GetLEDCount() != 0)
|
||||
// {
|
||||
new_controller = new RGBController_Polychrome(new_polychrome);
|
||||
rgb_controllers.push_back(new_controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete new_polychrome;
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// delete new_polychrome;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user