mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-23 00:55:20 -04:00
Add controller flags field with flags for controller location and update behavior
This commit is contained in:
1 parent
1967ec9526
commit
bb79fbfc07
5 files changed
+75
-5
No files matched your search
@@ -255,6 +255,12 @@ std::vector<i2c_smbus_interface*> & ResourceManager::GetI2CBusses()
|
||||
|
||||
void ResourceManager::RegisterRGBController(RGBController *rgb_controller)
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| Mark this controller as locally owned |
|
||||
\*-------------------------------------------------*/
|
||||
rgb_controller->flags &= ~CONTROLLER_FLAG_REMOTE;
|
||||
rgb_controller->flags |= CONTROLLER_FLAG_LOCAL;
|
||||
|
||||
LOG_INFO("[%s] Registering RGB controller", rgb_controller->name.c_str());
|
||||
rgb_controllers_hw.push_back(rgb_controller);
|
||||
|
||||
|
||||
Reference in new issue
Block a user