Change all I2C/SMBus detectors to use RegisterRGBController

This commit is contained in:
Adam Honse 2021-03-23 20:36:33 -05:00
parent f1d6c2953d
commit ec90f4678b
20 changed files with 59 additions and 59 deletions

View file

@ -44,7 +44,7 @@ bool TestForPolychromeSMBusController(i2c_smbus_interface* bus, unsigned char ad
* *
\******************************************************************************************/
void DetectPolychromeSMBusControllers(std::vector<i2c_smbus_interface*>& busses, std::vector<RGBController*>& rgb_controllers)
void DetectPolychromeSMBusControllers(std::vector<i2c_smbus_interface*>& busses)
{
PolychromeController* new_polychrome;
RGBController_Polychrome* new_controller;
@ -61,7 +61,7 @@ void DetectPolychromeSMBusControllers(std::vector<i2c_smbus_interface*>& busses,
if(new_polychrome->GetASRockType() != ASROCK_TYPE_UNKNOWN)
{
new_controller = new RGBController_Polychrome(new_polychrome);
rgb_controllers.push_back(new_controller);
ResourceManager::get()->RegisterRGBController(new_controller);
}
else
{