From bb65a8d87ee523c92ca1b5f57efe139bab3859fe Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Tue, 7 Aug 2012 10:49:21 -0700 Subject: Allow NfcB connects in NCI stack. PN544 did not support this - move the code checking for that into dh implementation. Change-Id: I4def57697bc81cf599421f1ffbfa85c0db72c458 --- nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nxp') diff --git a/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java b/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java index eddde94..45a59d2 100755 --- a/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java +++ b/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java @@ -136,6 +136,10 @@ public class NativeNfcTag implements TagEndpoint { private native int doConnect(int handle); public synchronized int connectWithStatus(int technology) { + if (technology == TagTechnology.NFC_B) { + // Not supported by PN544 + return -1; + } if (mWatchdog != null) { mWatchdog.pause(); } -- cgit v1.1