Skip to content

Commit

Permalink
Correct example ConnectedReaderStatus
Browse files Browse the repository at this point in the history
MacOS does not allow Direct/Unset for Connect(...)
  • Loading branch information
danm-de committed May 25, 2019
1 parent a9715f1 commit 07b5118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/ConnectedReaderStatus/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static void Main(string[] args) {
return;
}

using (var reader = ctx.ConnectReader(firstReader, SCardShareMode.Direct, SCardProtocol.Unset)) {
using (var reader = ctx.ConnectReader(firstReader, SCardShareMode.Shared, SCardProtocol.Any)) {
var status = reader.GetStatus();

Console.WriteLine($"Reader names: {string.Join(", ", status.GetReaderNames())}");
Expand Down

0 comments on commit 07b5118

Please sign in to comment.