mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Ignore UwU non-RGB
This commit is contained in:
parent
736d58c7a3
commit
69d320fca3
@ -102,6 +102,10 @@ public sealed class WootingDeviceProvider : AbstractRGBDeviceProvider
|
||||
_WootingSDK.SelectDevice(i);
|
||||
_WootingDeviceInfo nativeDeviceInfo = (_WootingDeviceInfo)Marshal.PtrToStructure(_WootingSDK.GetDeviceInfo(), typeof(_WootingDeviceInfo))!;
|
||||
|
||||
//Uwu non-rgb returns zero here.
|
||||
if (nativeDeviceInfo.MaxLedIndex == 0)
|
||||
continue;
|
||||
|
||||
yield return nativeDeviceInfo.DeviceType switch
|
||||
{
|
||||
WootingDeviceType.Keypad3Keys => new WootingKeypadRGBDevice(new WootingKeypadRGBDeviceInfo(nativeDeviceInfo, i), updateQueue),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user