Small coding style adjustment

This commit is contained in:
DarthAffe authored and GitHub committed 2020-08-03 00:05:31 +02:00
1 parent 37426ef413
commit 0c5d0fe735
1 file changed
+2 -2
+2 -2
View File
@@ -17,7 +17,7 @@ namespace RGB.NET.Devices.Debug
public override DebugRGBDeviceInfo DeviceInfo { get; } public override DebugRGBDeviceInfo DeviceInfo { get; }
/// <summary> /// <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> /// </summary>
public string LayoutPath { get; } public string LayoutPath { get; }
@@ -32,12 +32,12 @@ namespace RGB.NET.Devices.Debug
/// </summary> /// </summary>
internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null) internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null)
{ {
this.LayoutPath = layoutPath;
this._syncBackFunc = syncBackFunc; this._syncBackFunc = syncBackFunc;
this._updateLedsAction = updateLedsAction; this._updateLedsAction = updateLedsAction;
DeviceLayout layout = DeviceLayout.Load(layoutPath); DeviceLayout layout = DeviceLayout.Load(layoutPath);
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null); DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
LayoutPath = layoutPath;
} }
#endregion #endregion