Store name in MSIGPUController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-12 19:27:44 -05:00
parent c256b6246a
commit a2826ec865
5 changed files with 43 additions and 36 deletions

View File

@@ -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);