Remove boolean for ASR LED and replace it with an ASRock type enum with ASR LED, Polychrome V1, and Polychrome V2.

This commit is contained in:
Adam Honse 2020-08-30 01:57:13 -05:00
parent f577e5ef3c
commit d38dcc038a
4 changed files with 312 additions and 288 deletions

View file

@ -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->GetASRockType() != ASROCK_TYPE_UNKNOWN)
{
new_controller = new RGBController_Polychrome(new_polychrome);
rgb_controllers.push_back(new_controller);
// }
// else
// {
// delete new_polychrome;
// }
}
else
{
delete new_polychrome;
}
}
}