mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-05 06:34:25 -04:00
Store name in HyperXMicrophoneController to avoid setting it in detector
This commit is contained in:
@@ -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