From 08fbb0e526b2aa3d5f2fb09f65791091ca725780 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 1 Nov 2023 20:37:12 +0100 Subject: [PATCH] Fix custom LED data type not being determined correctly --- RGB.NET.Layout/LayoutExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RGB.NET.Layout/LayoutExtension.cs b/RGB.NET.Layout/LayoutExtension.cs index 915380b1..0426e3b7 100644 --- a/RGB.NET.Layout/LayoutExtension.cs +++ b/RGB.NET.Layout/LayoutExtension.cs @@ -73,7 +73,7 @@ public static void Save(this IDeviceLayout layout, string targetFile) public static void Save(this IDeviceLayout layout, Stream stream) { Type? customDataType = layout.CustomData?.GetType(); - Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.GetType(); + Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.CustomData?.GetType(); Type[] customTypes; if ((customDataType != null) && (customLedDataType != null))