From 9a93036c33ec14f521c52e9a42eed6db488c79c6 Mon Sep 17 00:00:00 2001 From: Rafal Walczyna Date: Fri, 23 Mar 2018 11:05:05 +0100 Subject: [PATCH] [NFC] Fix isActivatedHandlerFunctions return values Functions IsActivatedHandlerForCategory and IsActivatedHandlerForAID always return false. After fix they work properly. TCT tests needs fixing, after fix there will be 100% passrate. Tested on TW1 tizen3.0 Change-Id: I9a4833d4073e512e9414e63325515ebfa8d6b8a4 Signed-off-by: Rafal Walczyna --- src/nfc/nfc_adapter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nfc/nfc_adapter.cc b/src/nfc/nfc_adapter.cc index 874fa6ef..3a6f9ebf 100644 --- a/src/nfc/nfc_adapter.cc +++ b/src/nfc/nfc_adapter.cc @@ -1385,7 +1385,7 @@ PlatformResult NFCAdapter::IsActivatedHandlerForAID(const std::string& type, con nfc_se_type_e se_type; PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type); - if (!result.IsError()) { + if (result.IsError()) { LoggerE("Error: %s", result.message().c_str()); return result; } @@ -1406,7 +1406,7 @@ PlatformResult NFCAdapter::IsActivatedHandlerForCategory( nfc_se_type_e se_type; PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type); - if (!result.IsError()) { + if (result.IsError()) { LoggerE("Error: %s", result.message().c_str()); return result; } -- 2.34.1