mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 01:18:53 -04:00
Store name in HyperXMicrophoneController to avoid setting it in detector
This commit is contained in:
1 parent
0eee6044b2
commit
0c0ffe7f5c
4 files changed
+13
-5
No files matched your search
@@ -37,9 +37,8 @@ void DetectHyperXMicrophoneControllers(hidapi_wrapper wrapper, hid_device_info*
|
||||
|
||||
if(dev)
|
||||
{
|
||||
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path);
|
||||
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path, name);
|
||||
RGBController_HyperXMicrophone *rgb_controller = new RGBController_HyperXMicrophone(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user