1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

Small coding style adjustment

This commit is contained in:
DarthAffe 2020-08-03 00:05:31 +02:00 committed by GitHub
parent 37426ef413
commit 0c5d0fe735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ namespace RGB.NET.Devices.Debug
public override DebugRGBDeviceInfo DeviceInfo { get; }
/// <summary>
/// Gets the path used to mock this <see cref="DebugRGBDevice"/>
/// Gets the path of the layout used to mock this <see cref="DebugRGBDevice"/>
/// </summary>
public string LayoutPath { get; }
@ -32,12 +32,12 @@ namespace RGB.NET.Devices.Debug
/// </summary>
internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null)
{
this.LayoutPath = layoutPath;
this._syncBackFunc = syncBackFunc;
this._updateLedsAction = updateLedsAction;
DeviceLayout layout = DeviceLayout.Load(layoutPath);
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
LayoutPath = layoutPath;
}
#endregion