mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-27 10:21:08 -04:00
Store name in LinuxLEDController to avoid setting it in detector
This commit is contained in:
@@ -63,13 +63,12 @@ void DetectLinuxLEDControllers()
|
||||
blue_path = linux_led_settings["devices"][device_idx]["blue_path"];
|
||||
}
|
||||
|
||||
LinuxLEDController* controller = new LinuxLEDController();
|
||||
LinuxLEDController* controller = new LinuxLEDController(name);
|
||||
controller->OpenRedPath(red_path);
|
||||
controller->OpenGreenPath(green_path);
|
||||
controller->OpenBluePath(blue_path);
|
||||
|
||||
RGBController_LinuxLED* rgb_controller = new RGBController_LinuxLED(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user