Skip to content

Commit

Permalink
Fixed volume SBC properties
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Oct 30, 2024
1 parent 9192b31 commit 8e2b024
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/DuetAPI/ObjectModel/Volumes/Volume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ public bool Mounted
/// <summary>
/// Name of this volume
/// </summary>
public string Name
[SbcProperty(false)]
public string? Name
{
get => _name;
set => SetPropertyValue(ref _name, value);
}
private string _name = string.Empty;
private string? _name;

/// <summary>
/// Number of currently open files or null if unknown
Expand All @@ -69,12 +70,13 @@ public long? PartitionSize
/// <summary>
/// Logical path of the storage device
/// </summary>
public string Path
[SbcProperty(false)]
public string? Path
{
get => _path;
set => SetPropertyValue(ref _path, value);
}
private string _path = string.Empty;
private string? _path;

/// <summary>
/// Speed of the storage device (in bytes/s or null if unknown)
Expand Down

0 comments on commit 8e2b024

Please sign in to comment.