Core - Fixed logical layouts not being picked correctly

This commit is contained in:
Diogo Trindade committed 2022-12-23 22:18:08 +00:00
1 parent 6b7de952ba
commit 2efb3feff7
1 file changed
+1 -1
@@ -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();