diff options
author | Sven Gothel <[email protected]> | 2021-10-05 19:43:01 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-05 19:43:01 +0200 |
commit | b18ef5d5da0c8c84f2524b9ca505269c8340496f (patch) | |
tree | c9ab1be876a277faf4101f3d2171b47358b7289c /java/jni | |
parent | 61dfcee5f895d319f7385cb19cae4d55f8906247 (diff) |
BTAdapter/Device: Simplify set[DefaultConnected]LE_PHY(..): Remove bool args to simply reuse LE_PHYs bitmap zero to ignore either
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTAdapter.cxx | 3 | ||||
-rw-r--r-- | java/jni/direct_bt/DBTDevice.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx index 0b77f02d..11710f7c 100644 --- a/java/jni/direct_bt/DBTAdapter.cxx +++ b/java/jni/direct_bt/DBTAdapter.cxx @@ -925,7 +925,6 @@ jbyte Java_jau_direct_1bt_DBTAdapter_resetImpl(JNIEnv *env, jobject obj) { } jbyte Java_jau_direct_1bt_DBTAdapter_setDefaultLE_1PHYImpl(JNIEnv *env, jobject obj, - jboolean tryTx, jboolean tryRx, jbyte jTx, jbyte jRx) { try { BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj); @@ -934,7 +933,7 @@ jbyte Java_jau_direct_1bt_DBTAdapter_setDefaultLE_1PHYImpl(JNIEnv *env, jobject const LE_PHYs Tx = static_cast<LE_PHYs>(jTx); const LE_PHYs Rx = static_cast<LE_PHYs>(jRx); - return number ( adapter->setDefaultLE_PHY(tryTx, tryRx, Tx, Rx) ); + return number ( adapter->setDefaultLE_PHY(Tx, Rx) ); } catch(...) { rethrow_and_raise_java_exception(env); } diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx index 1215c0a7..5141b548 100644 --- a/java/jni/direct_bt/DBTDevice.cxx +++ b/java/jni/direct_bt/DBTDevice.cxx @@ -368,7 +368,6 @@ jbyte Java_jau_direct_1bt_DBTDevice_getConnectedLE_1PHYImpl(JNIEnv *env, jobject } jbyte Java_jau_direct_1bt_DBTDevice_setConnectedLE_1PHYImpl(JNIEnv *env, jobject obj, - jboolean tryTx, jboolean tryRx, jbyte jTx, jbyte jRx) { try { BTDevice *device = getJavaUplinkObject<BTDevice>(env, obj); @@ -377,7 +376,7 @@ jbyte Java_jau_direct_1bt_DBTDevice_setConnectedLE_1PHYImpl(JNIEnv *env, jobject const LE_PHYs Tx = static_cast<LE_PHYs>(jTx); const LE_PHYs Rx = static_cast<LE_PHYs>(jRx); - return number ( device->setConnectedLE_PHY(tryTx, tryRx, Tx, Rx) ); + return number ( device->setConnectedLE_PHY(Tx, Rx) ); } catch(...) { rethrow_and_raise_java_exception(env); } |