diff options
author | Sven Gothel <[email protected]> | 2020-05-23 08:30:41 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-23 08:30:41 +0200 |
commit | 92bd67617091712f7fba24f5dfd2e2ffc446b15b (patch) | |
tree | 70e7d54eba097a46a07b4906e2003a4446d2708d /java/jni | |
parent | 1cfb2a556fa74b08e8e37f34ee38826fc6fc91d6 (diff) |
DBTAdapter: Remove explicit HCISession, migrate connectedDevice and use HCIComm directly
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTAdapter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx index 168a407e..360084b1 100644 --- a/java/jni/direct_bt/DBTAdapter.cxx +++ b/java/jni/direct_bt/DBTAdapter.cxx @@ -396,8 +396,8 @@ jboolean Java_direct_1bt_tinyb_DBTAdapter_openImpl(JNIEnv *env, jobject obj) { try { DBTAdapter *adapter = getInstance<DBTAdapter>(env, obj); DBG_PRINT("Java_direct_1bt_tinyb_DBTAdapter_deleteImpl %s", adapter->toString().c_str()); - std::shared_ptr<direct_bt::HCISession> session = adapter->open(); - if( nullptr == session ) { + std::shared_ptr<direct_bt::HCIComm> hciSession = adapter->openHCI(); + if( nullptr == hciSession ) { throw BluetoothException("Couldn't open adapter "+adapter->toString(), E_FILE_LINE); } return JNI_TRUE; |