diff --git a/RGB.NET.Devices.Novation/Enum/NovationDevices.cs b/RGB.NET.Devices.Novation/Enum/NovationDevices.cs index 11ae6e0b..5c8d19cd 100644 --- a/RGB.NET.Devices.Novation/Enum/NovationDevices.cs +++ b/RGB.NET.Devices.Novation/Enum/NovationDevices.cs @@ -34,5 +34,10 @@ public enum NovationDevices [DeviceId("Launchpad Open")] [ColorCapability(NovationColorCapabilities.RGB)] [LedIdMapping(LedIdMappings.Pro)] - LaunchpadCustomFirmware + LaunchpadCustomFirmware, + + [DeviceId("LPMiniMK3")] + [ColorCapability(NovationColorCapabilities.RGB)] + [LedIdMapping(LedIdMappings.Current)] + LaunchpadMiniMK3, } \ No newline at end of file diff --git a/RGB.NET.Devices.Novation/NovationDeviceProvider.cs b/RGB.NET.Devices.Novation/NovationDeviceProvider.cs index 9a86f6f5..e3c9b777 100644 --- a/RGB.NET.Devices.Novation/NovationDeviceProvider.cs +++ b/RGB.NET.Devices.Novation/NovationDeviceProvider.cs @@ -65,11 +65,10 @@ protected override IEnumerable LoadDevices() MidiOutCaps outCaps = OutputDeviceBase.GetDeviceCapabilities(index); if (outCaps.name == null) continue; - string deviceName = outCaps.name.ToUpperInvariant(); NovationDevices? deviceId = (NovationDevices?)Enum.GetValues(typeof(NovationDevices)) .Cast() .Where(x => x.GetDeviceId() != null) - .FirstOrDefault(x => deviceName.Contains(x.GetDeviceId()!.ToUpperInvariant())); + .FirstOrDefault(x => outCaps.name.Contains(x.GetDeviceId()!, StringComparison.InvariantCultureIgnoreCase)); if (deviceId == null) continue;