diff --git a/Project-Aurora/Project-Aurora/Devices/RGBNet/RgbNetDevice.cs b/Project-Aurora/Project-Aurora/Devices/RGBNet/RgbNetDevice.cs index 94430feec..0784aaacd 100644 --- a/Project-Aurora/Project-Aurora/Devices/RGBNet/RgbNetDevice.cs +++ b/Project-Aurora/Project-Aurora/Devices/RGBNet/RgbNetDevice.cs @@ -231,9 +231,12 @@ private static void UpdateReverse(IReadOnlyDictionary 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);