mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-03 13:48:43 -05:00
Store name in MSIGPUController to avoid setting it in detector
This commit is contained in:
@@ -28,9 +28,8 @@ void DetectMSIGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const s
|
||||
return;
|
||||
}
|
||||
|
||||
MSIGPUController* controller = new MSIGPUController(bus, i2c_addr);
|
||||
MSIGPUController* controller = new MSIGPUController(bus, i2c_addr, name);
|
||||
RGBController_MSIGPU* rgb_controller = new RGBController_MSIGPU(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user