Skip to content

Commit

Permalink
Further increase NFC transaction timeout
Browse files Browse the repository at this point in the history
Several users have reported that their YubiKeys hit the two second timeout when used via NFC. Per specification, this shouldn't be possible, it just seems that some NEOs are buggy. Increase the timeout to ten seconds to make these NEOs work.

Fixes #5
  • Loading branch information
pp3345 committed Oct 4, 2018
1 parent 5b7b52c commit 729e61a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public NfcYubiKey(final IsoDep tag) {
private void ensureConnected() throws IOException {
if (!this.tag.isConnected()) {
this.tag.connect();
this.tag.setTimeout(2000);
this.tag.setTimeout(10000);
}
}

Expand Down

0 comments on commit 729e61a

Please sign in to comment.