Skip to content

Commit

Permalink
fix attempt for Logitech (RGB.NET)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 8, 2023
1 parent da3046c commit bf9ebd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Project-Aurora/Project-Aurora/Devices/RGBNet/RgbNetDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,12 @@ private static void UpdateReverse(IReadOnlyDictionary<DeviceKeys, Color> keyColo
var calibrated = Global.Configuration.DeviceCalibrations.TryGetValue(calibrationName, out var calibration);
foreach (var (key, color) in keyColors)
{
Led? led;
if (!RgbNetKeyMappings.AuroraToRgbNet.TryGetValue(key, out var rgbNetLedId) || (led = device[rgbNetLedId]) == null)
if (!RgbNetKeyMappings.AuroraToRgbNet.TryGetValue(key, out var rgbNetLedId))
continue;
var led = device[rgbNetLedId] ?? device.AddLed(rgbNetLedId, new Point(), new Size());
if (led == null)
continue;

if (calibrated)
{
UpdateLedCalibrated(led, color, calibration);
Expand Down

0 comments on commit bf9ebd8

Please sign in to comment.