Fix for initialization failure when card returns FCI in data field.

This commit is contained in:
Joey Castillo 2015-04-20 17:38:36 -04:00
parent 104fdcd6bf
commit 9d56fc9768

View File

@ -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!");
} }