mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Compare commits
4 Commits
e332d79a47
...
3fbc4b997e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fbc4b997e | ||
|
|
3074a2b7bf | ||
|
|
6f4c07d65f | ||
|
|
1fa466809e |
@ -92,10 +92,20 @@ namespace RGB.NET.Core
|
|||||||
if (UpdateTask != null)
|
if (UpdateTask != null)
|
||||||
{
|
{
|
||||||
UpdateTokenSource?.Cancel();
|
UpdateTokenSource?.Cancel();
|
||||||
// ReSharper disable once MethodSupportsCancellation
|
try
|
||||||
UpdateTask.Wait();
|
{
|
||||||
UpdateTask.Dispose();
|
// ReSharper disable once MethodSupportsCancellation
|
||||||
UpdateTask = null;
|
UpdateTask.Wait();
|
||||||
|
}
|
||||||
|
catch (AggregateException)
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
UpdateTask.Dispose();
|
||||||
|
UpdateTask = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,6 +48,21 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
{ LedId.Mouse3, (0,2) }
|
{ LedId.Mouse3, (0,2) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ CoolerMasterDevicesIndexes.MM830, new Dictionary<LedId, (int row, int column)>
|
||||||
|
{
|
||||||
|
{ LedId.Mouse1, (0,0) },
|
||||||
|
{ LedId.Mouse2, (0,1) },
|
||||||
|
{ LedId.Mouse3, (0,2) },
|
||||||
|
{ LedId.Mouse4, (0,3) },
|
||||||
|
{ LedId.Mouse5, (0,4) },
|
||||||
|
{ LedId.Mouse6, (0,5) },
|
||||||
|
{ LedId.Mouse7, (0,6) },
|
||||||
|
{ LedId.Mouse8, (0,7) },
|
||||||
|
{ LedId.Mouse9, (0,8) },
|
||||||
|
{ LedId.Mouse10, (0,9) },
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user