summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-29 17:46:28 +0200
committerSven Gothel <[email protected]>2020-07-29 17:46:28 +0200
commit7de95a3a7471703a022c67005449c96846fdb35a (patch)
treef4f86fe80b998db183aa2d1a4742d2c3c6083a6c /java
parentae16045cfaaac963331bbc3aaf42b3117f890125 (diff)
Refine enum BTMode and ScanType: Elevate to 'enum class', shorten value definition and add getScanTypeString(..) getScanType(BTMode)
Diffstat (limited to 'java')
-rw-r--r--java/jni/direct_bt/DBTManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/direct_bt/DBTManager.cxx b/java/jni/direct_bt/DBTManager.cxx
index 3a02540f..71cbe591 100644
--- a/java/jni/direct_bt/DBTManager.cxx
+++ b/java/jni/direct_bt/DBTManager.cxx
@@ -42,7 +42,7 @@ void Java_direct_1bt_tinyb_DBTManager_initImpl(JNIEnv *env, jobject obj, jboolea
{
directBTJNISettings.setUnifyUUID128Bit(unifyUUID128Bit);
try {
- DBTManager *manager = &DBTManager::get(BTMode::BT_MODE_LE); // special: static singleton
+ DBTManager *manager = &DBTManager::get(BTMode::LE); // special: static singleton
setInstance<DBTManager>(env, obj, manager);
java_exception_check_and_throw(env, E_FILE_LINE);
manager->setJavaObject( std::shared_ptr<JavaAnonObj>( new JavaGlobalObj(obj, nullptr) ) );