Skip to content

Commit 2622d65

Browse files
committed
Add BreakoutButtonState.None
- There was no enum state for no buttons active - Replace microseconds with usec in comments to match other comments in the library
1 parent 5c6fa4c commit 2622d65

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

OpenEphys.Onix1/ConfigureDigitalIO.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public ConfigureDigitalIO()
4545
public bool Enable { get; set; } = true;
4646

4747
/// <summary>
48-
/// Gets or sets the dead time, in microseconds, between event detections when in asynchronous
48+
/// Gets or sets the dead time, in μsec, between event detections when in asynchronous
4949
/// sampling mode.
5050
/// </summary>
5151
/// <remarks>
@@ -55,15 +55,15 @@ public ConfigureDigitalIO()
5555
/// </remarks>
5656
[Range(0, 1e6)]
5757
[Category(ConfigurationCategory)]
58-
[Description("Specifies dead time, in microseconds, between digital event detections when in asynchronous " +
58+
[Description("Specifies dead time, in μsec, between digital event detections when in asynchronous " +
5959
"sampling mode")]
6060
public double DeadTime
6161
{
6262
get => deadTime;
6363
set => deadTime = (value >= 0 && value <= 1e6)
6464
? value
6565
: throw new ArgumentOutOfRangeException(nameof(DeadTime), value,
66-
$"{nameof(DeadTime)} must be between 0 and 1e6 microseconds.");
66+
$"{nameof(DeadTime)} must be between 0 and 1e6 μsec.");
6767
}
6868

6969
/// <summary>
@@ -191,6 +191,10 @@ public enum DigitalPortState : byte
191191
[Flags]
192192
public enum BreakoutButtonState : ushort
193193
{
194+
/// <summary>
195+
/// Specifies that no buttons or switches are active.
196+
/// </summary>
197+
None = 0x0,
194198
/// <summary>
195199
/// Specifies that the ☾ key is depressed.
196200
/// </summary>

0 commit comments

Comments
 (0)