From 4efbf54f5276f583667116ca1df14e82494acdc2 Mon Sep 17 00:00:00 2001 From: HyunJin Park Date: Sun, 24 May 2015 02:02:47 +0900 Subject: [PATCH] Revert "[NFC] Fix for setting exclusiveMode." This reverts commit 7e35a0a19aba95702e5a8bac20e0b4e61900dcad. - Web TCT is failed. Change-Id: Ie8567712b1b6c949684e1501f1adea4da86089eb --- src/nfc/nfc_instance.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/nfc/nfc_instance.cc b/src/nfc/nfc_instance.cc index e96d6afc..13af6dfa 100644 --- a/src/nfc/nfc_instance.cc +++ b/src/nfc/nfc_instance.cc @@ -137,15 +137,10 @@ void NFCInstance::SetExclusiveMode( CHECK_EXIST(args, "exclusiveMode", out); bool exmode = args.get("exclusiveMode").get(); - int ret = NFC_ERROR_NONE; - if (exmode) { - ret = nfc_manager_enable_transaction_fg_dispatch(); - } else { - ret = nfc_manager_disable_transaction_fg_dispatch(); - } - + int ret = nfc_manager_set_system_handler_enable(!exmode); if (NFC_ERROR_NONE != ret) { - PlatformResult result = NFCUtil::CodeToResult(ret, "Failed to set exclusive mode."); + PlatformResult result = NFCUtil::CodeToResult(ret, + "Failed to set exclusive mode."); ReportError(result, &out); } else { ReportSuccess(out); -- 2.34.1