Rework RGBControllers and detectors that set string fields other than name outside of the RGBController
This commit is contained in:
parent
6a472437bb
commit
abd34f1810
15 changed files with 40 additions and 27 deletions
|
|
@ -33,10 +33,8 @@ void DetectPNYGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const s
|
|||
return;
|
||||
}
|
||||
|
||||
PNYGPUController* controller = new PNYGPUController(bus, i2c_addr);
|
||||
PNYGPUController* controller = new PNYGPUController(bus, i2c_addr, name);
|
||||
RGBController_PNYGPU* rgb_controller = new RGBController_PNYGPU(controller);
|
||||
rgb_controller->name = name;
|
||||
rgb_controller->vendor = name.substr(0, name.find(' '));
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
} /* DetectPNYGPUControllers() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue