mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-13 21:57:14 -04:00
Store name in EVGATuringGPUController to avoid setting it in detector
This commit is contained in:
1 parent
df75659778
commit
d7f0872690
5 files changed
+34
-29
No files matched your search
@@ -28,14 +28,11 @@
|
||||
|
||||
void DetectEVGATuringGPUControllers(i2c_smbus_interface* bus, uint8_t address, const std::string& name)
|
||||
{
|
||||
if (bus->port_id == 1)
|
||||
if(bus->port_id == 1)
|
||||
{
|
||||
EVGAGPUv2Controller* controller;
|
||||
RGBController_EVGAGPUv2* rgb_controller;
|
||||
EVGAGPUv2Controller* controller = new EVGAGPUv2Controller(bus, address, name);
|
||||
RGBController_EVGAGPUv2* rgb_controller = new RGBController_EVGAGPUv2(controller);
|
||||
|
||||
controller = new EVGAGPUv2Controller(bus, address);
|
||||
rgb_controller = new RGBController_EVGAGPUv2(controller);
|
||||
rgb_controller->name = name.c_str();
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
} /* DetectEVGATuringGPUControllers() */
|
||||
|
||||
Reference in new issue
Block a user