mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Compare commits
No commits in common. "3fbc4b997eb8d2112024cc5650b33bf14f75ca63" and "e332d79a47f135f10ea4c11971bb32d8f15c51a0" have entirely different histories.
3fbc4b997e
...
e332d79a47
@ -92,23 +92,13 @@ namespace RGB.NET.Core
|
|||||||
if (UpdateTask != null)
|
if (UpdateTask != null)
|
||||||
{
|
{
|
||||||
UpdateTokenSource?.Cancel();
|
UpdateTokenSource?.Cancel();
|
||||||
try
|
|
||||||
{
|
|
||||||
// ReSharper disable once MethodSupportsCancellation
|
// ReSharper disable once MethodSupportsCancellation
|
||||||
UpdateTask.Wait();
|
UpdateTask.Wait();
|
||||||
}
|
|
||||||
catch (AggregateException)
|
|
||||||
{
|
|
||||||
// ignored
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
UpdateTask.Dispose();
|
UpdateTask.Dispose();
|
||||||
UpdateTask = null;
|
UpdateTask = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateLoop()
|
private void UpdateLoop()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,21 +48,6 @@ 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