Store name in LinuxLEDController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-12 18:44:35 -05:00
parent 2967ccb1cb
commit b136e7739a
4 changed files with 24 additions and 16 deletions

View File

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