Skip to content

Commit d82c33b

Browse files
authored
Merge pull request #451 from open-ephys/issue-449
Change DigitalPortState backing type from ushort to byte
2 parents 211ac6c + 010dd76 commit d82c33b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

OpenEphys.Onix1/ConfigureDigitalIO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public NameConverter()
8484
/// Specifies the state of the ONIX breakout board's digital input pins.
8585
/// </summary>
8686
[Flags]
87-
public enum DigitalPortState : ushort
87+
public enum DigitalPortState : byte
8888
{
8989
/// <summary>
9090
/// Specifies that pin 0 is high.

OpenEphys.Onix1/DigitalInputDataFrame.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct DigitalInputPayload
3636
{
3737
public ulong HubClock;
3838
public DigitalPortState DigitalInputs;
39+
public byte Pad; // NB: Pad comes after port state due to endianness change
3940
public BreakoutButtonState Buttons;
4041
}
4142
}

0 commit comments

Comments
 (0)