diff options
author | Sven Gothel <[email protected]> | 2021-10-03 22:33:21 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-03 22:33:21 +0200 |
commit | 813b1c56842d644ca5a8ccd38171f4d8c4c47864 (patch) | |
tree | 107d82b1f2d3a46af3162a6260983c14b11aaf69 /java/jni | |
parent | 08b0a21f9607bf34f802235599c34890d16654ac (diff) |
BTGattService: Clarify fields; BTGatt*::toString(): Add type prefix
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTDevice.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx index 9073d2b0..19a6ef71 100644 --- a/java/jni/direct_bt/DBTDevice.cxx +++ b/java/jni/direct_bt/DBTDevice.cxx @@ -798,14 +798,14 @@ jobject Java_jau_direct_1bt_DBTDevice_getServicesImpl(JNIEnv *env, jobject obj) std::shared_ptr<BTDevice> _device = service->getDeviceChecked(); JavaGlobalObj::check(_device->getJavaObject(), E_FILE_LINE); jobject jdevice = JavaGlobalObj::GetObject(_device->getJavaObject()); - const jboolean isPrimary = service->isPrimary; + const jboolean isPrimary = service->primary; const jstring juuid = from_string_to_jstring(env_, directBTJNISettings.getUnifyUUID128Bit() ? service->type->toUUID128String() : service->type->toString()); java_exception_check_and_throw(env_, E_FILE_LINE); jobject jservice = env_->NewObject(clazz, clazz_ctor, (jlong)service, jdevice, isPrimary, - juuid, service->startHandle, service->endHandle); + juuid, service->handle, service->end_handle); java_exception_check_and_throw(env_, E_FILE_LINE); JNIGlobalRef::check(jservice, E_FILE_LINE); std::shared_ptr<JavaAnon> jServiceRef = service->getJavaObject(); // GlobalRef |