mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Ignore UwU non-RGB
This commit is contained in:
1 parent
736d58c7a3
commit
69d320fca3
1 file changed
+4
@@ -101,6 +101,10 @@ public sealed class WootingDeviceProvider : AbstractRGBDeviceProvider
|
|||||||
WootingUpdateQueue updateQueue = new(GetUpdateTrigger(), i);
|
WootingUpdateQueue updateQueue = new(GetUpdateTrigger(), i);
|
||||||
_WootingSDK.SelectDevice(i);
|
_WootingSDK.SelectDevice(i);
|
||||||
_WootingDeviceInfo nativeDeviceInfo = (_WootingDeviceInfo)Marshal.PtrToStructure(_WootingSDK.GetDeviceInfo(), typeof(_WootingDeviceInfo))!;
|
_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
|
yield return nativeDeviceInfo.DeviceType switch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user