Code cleanup

This commit is contained in:
Adam Honse 2022-02-28 16:06:33 -06:00
parent d8e7cd694d
commit ddeb5de65e
3 changed files with 14 additions and 12 deletions

View file

@ -19,11 +19,13 @@
void DetectMSI3ZoneControllers(hid_device_info* info, const std::string&)
{
hid_device* dev = hid_open_path(info->path);
if( dev )
if(dev)
{
MSI3ZoneController* controller = new MSI3ZoneController(dev, info->path);
MSI3ZoneController* controller = new MSI3ZoneController(dev, info->path);
RGBController_MSI3Zone* rgb_controller = new RGBController_MSI3Zone(controller);
// Constructor sets the name
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
} /* DetectMSI3ZoneControllers() */