mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 09:28:52 -04:00
Store name in LEDStripController to avoid setting it in detector
This commit is contained in:
1 parent
a1f144daf2
commit
0eb34eec25
4 files changed
+22
-16
No files matched your search
@@ -121,11 +121,10 @@ void DetectLEDStripControllers()
|
||||
|
||||
std::string value = dev.port + "," + std::to_string(dev.baud) + "," + std::to_string(dev.num_leds);
|
||||
|
||||
LEDStripController* controller = new LEDStripController();
|
||||
LEDStripController* controller = new LEDStripController(dev.name);
|
||||
controller->Initialize((char *)value.c_str(), dev.protocol);
|
||||
|
||||
RGBController_LEDStrip* rgb_controller = new RGBController_LEDStrip(controller);
|
||||
rgb_controller->name = dev.name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user