bluetooth/btstack/linkmgr/physicallinks.cpp
changeset 35 14e279d2bbb7
parent 34 9d84592f5036
child 48 22de2e391156
--- a/bluetooth/btstack/linkmgr/physicallinks.cpp	Mon Jul 12 07:06:31 2010 +0300
+++ b/bluetooth/btstack/linkmgr/physicallinks.cpp	Wed Jul 21 15:42:05 2010 +0300
@@ -58,7 +58,7 @@
 static const THCIErrorCode KDefaultRejectReason = EHostSecurityRejection; // see spec Error Codes
 
 #ifdef _DEBUG
-#define __CHECK_CONNECTION_HANDLE(aHandle) __ASSERT_DEBUG(aHandle==iHandle, Panic(EBTLinkMgrConnectionEventInWrongSAP));
+#define __CHECK_CONNECTION_HANDLE(aHandle) __ASSERT_DEBUG(HasHandle(aHandle), Panic(EBTLinkMgrConnectionEventInWrongSAP));
 #else
 #define __CHECK_CONNECTION_HANDLE(aHandle) aHandle=aHandle; // to suppress warnings
 #endif