From 2efb3feff78fbfaee828b13ec7ffbae167c27940 Mon Sep 17 00:00:00 2001 From: Diogo Trindade Date: Fri, 23 Dec 2022 22:18:08 +0000 Subject: [PATCH] Core - Fixed logical layouts not being picked correctly --- src/Artemis.Core/Models/Surface/Layout/ArtemisLedLayout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artemis.Core/Models/Surface/Layout/ArtemisLedLayout.cs b/src/Artemis.Core/Models/Surface/Layout/ArtemisLedLayout.cs index 1baca1d95..025732df5 100644 --- a/src/Artemis.Core/Models/Surface/Layout/ArtemisLedLayout.cs +++ b/src/Artemis.Core/Models/Surface/Layout/ArtemisLedLayout.cs @@ -63,7 +63,7 @@ public class ArtemisLedLayout // Prefer a matching layout or else a default layout (that has no name) LayoutCustomLedDataLogicalLayout logicalLayout = LayoutCustomLedData.LogicalLayouts - .OrderBy(l => l.Name == artemisDevice.LogicalLayout) + .OrderByDescending(l => l.Name == artemisDevice.LogicalLayout) .ThenBy(l => l.Name == null) .First();