Skip to content

Commit 46e07be

Browse files
authored
Fix chip select default value (#38)
1 parent e39ccb4 commit 46e07be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

System.Device.Spi/SpiConnectionSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public sealed class SpiConnectionSettings
2323
private SpiSharingMode _spiSharingMode;
2424
private DataFlow _dataFlow = DataFlow.MsbFirst;
2525
private int _busId;
26-
private int _chipSelectLineActiveState = PinValue.Low == true ? 0 : 1;
26+
// Default is active low
27+
private int _chipSelectLineActiveState = 0;
2728

2829
/// <summary>
2930
/// Initializes new instance of SpiConnectionSettings.

0 commit comments

Comments
 (0)