1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00

Merge pull request #205 from DarthAffe/SteelSeries

Fixed Steelseries devices not refreshing correctly and timing out
This commit is contained in:
DarthAffe 2021-04-19 22:10:31 +02:00 committed by GitHub
commit b39188474f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,12 +84,14 @@ namespace RGB.NET.Devices.SteelSeries
#region Methods
/// <inheritdoc />
protected override void InitializeSDK()
{
if (!SteelSeriesSDK.IsInitialized)
SteelSeriesSDK.Initialize();
}
/// <inheritdoc />
protected override IEnumerable<IRGBDevice> GetLoadedDevices(RGBDeviceType loadFilter)
{
DeviceDefinitions.LoadFilter = loadFilter;
@ -97,6 +99,7 @@ namespace RGB.NET.Devices.SteelSeries
return base.GetLoadedDevices(loadFilter);
}
/// <inheritdoc />
protected override IEnumerable<IRGBDevice> LoadDevices()
{
foreach ((HIDDeviceDefinition<SteelSeriesLedId, SteelSeriesDeviceType> definition, _) in DeviceDefinitions.GetConnectedDevices(x => x.CustomData))
@ -109,6 +112,9 @@ namespace RGB.NET.Devices.SteelSeries
}
}
/// <inheritdoc />
protected override IDeviceUpdateTrigger CreateUpdateTrigger(int id, double updateRateHardLimit) => new SteelSeriesDeviceUpdateTrigger(updateRateHardLimit);
/// <inheritdoc />
public override void Dispose()
{