mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 22:27:56 -04:00
Store name in BloodyB820RController to avoid setting it in detector
This commit is contained in:
1 parent
9c26f79ca6
commit
b8628bb495
4 files changed
+12
-5
No files matched your search
@@ -46,9 +46,8 @@ void DetectBloodyB820R(hid_device_info* info, const std::string& name)
|
||||
|
||||
if(dev)
|
||||
{
|
||||
BloodyB820RController* controller = new BloodyB820RController(dev, info->path);
|
||||
BloodyB820RController* controller = new BloodyB820RController(dev, info->path, name);
|
||||
RGBController_BloodyB820R* rgb_controller = new RGBController_BloodyB820R(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user