Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Increased isoDep timeout for long transceive ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
monday8am committed Nov 7, 2018
1 parent 0fea2ca commit 7a970e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import android.Keys._

android.Plugin.androidBuildAar

platformTarget in Android := "android-23"
platformTarget in Android := "android-27"

name := "nordpol-android"

Expand Down
3 changes: 2 additions & 1 deletion android/src/main/java/nordpol/AndroidCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import nordpol.OnCardErrorListener;

public class AndroidCard implements IsoCard {
private static final int DEFAULT_TIMEOUT = 15000;
private static final int DEFAULT_TIMEOUT = 60000;
private static final int SAMSUNG_S5_MINI_MAX = 253;

private IsoDep card;
Expand All @@ -20,6 +20,7 @@ public class AndroidCard implements IsoCard {

private AndroidCard(IsoDep card) {
this.card = card;
card.setTimeout(DEFAULT_TIMEOUT);
}

public static AndroidCard get(Tag tag) throws IOException {
Expand Down

0 comments on commit 7a970e4

Please sign in to comment.