mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -05:00
Fix for initialization failure when card returns FCI in data field.
This commit is contained in:
parent
104fdcd6bf
commit
9d56fc9768
@ -200,7 +200,7 @@ public abstract class BaseNfcActivity extends BaseActivity {
|
|||||||
+ "06" // Lc (number of bytes)
|
+ "06" // Lc (number of bytes)
|
||||||
+ "D27600012401" // Data (6 bytes)
|
+ "D27600012401" // Data (6 bytes)
|
||||||
+ "00"; // Le
|
+ "00"; // Le
|
||||||
if ( ! nfcCommunicate(opening).equals(accepted)) { // activate connection
|
if ( ! nfcCommunicate(opening).endsWith(accepted)) { // activate connection
|
||||||
throw new IOException("Initialization failed!");
|
throw new IOException("Initialization failed!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user