Skip to content

Commit

Permalink
Fixed OpenRGB implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
logicallysynced committed Jun 15, 2024
1 parent 27b6238 commit 76275cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Chromatics/Core/RGBController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,18 @@ public static void Setup()

if (appSettings.deviceOpenRGBEnabled)
{
var openrgb = new OpenRGBServerDefinition
{
Port = 6742,
Ip = "127.0.0.1",
ClientName = "Chromatics"
};

OpenRGBDeviceProvider.Instance.AddDeviceDefinition(openrgb);
LoadDeviceProvider(OpenRGBDeviceProvider.Instance);



}

if (appSettings.deviceHueEnabled)
Expand Down Expand Up @@ -298,6 +309,7 @@ public static void LoadDeviceProvider(IRGBDeviceProvider provider)
//Attach device provider
foreach (var device in provider.Devices)
{
Console.WriteLine(@"Device: " + device.DeviceInfo.DeviceName);
surface.Attach(device);
}

Expand Down Expand Up @@ -350,6 +362,7 @@ public static void UnloadDeviceProvider(IRGBDeviceProvider provider, bool remove
surface.Detach(device);
}


provider.Exception -= deviceExceptionEventHandler;
provider.DevicesChanged -= DevicesChanged;

Expand Down

0 comments on commit 76275cb

Please sign in to comment.