diff options
author | Sven Gothel <[email protected]> | 2020-06-09 07:22:37 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-09 07:22:37 +0200 |
commit | f881c9a048b752cdd9a695dafd83003a8be2d0b0 (patch) | |
tree | 82c075cf29b986ccbba0985689d8bc7093cc598c /java | |
parent | e4956ec63fbcb96d57195a0a4243f4c36b22ee8b (diff) |
L2CAPComm/GATTHandler: User 'enum class' constants for type safety; Drop GATTHandler::State for L2CAPComm::State
Diffstat (limited to 'java')
-rw-r--r-- | java/jni/direct_bt/DBTGattCharacteristic.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/direct_bt/DBTGattCharacteristic.cxx b/java/jni/direct_bt/DBTGattCharacteristic.cxx index 5c5480fe..38a55358 100644 --- a/java/jni/direct_bt/DBTGattCharacteristic.cxx +++ b/java/jni/direct_bt/DBTGattCharacteristic.cxx @@ -110,7 +110,7 @@ jbyteArray Java_direct_1bt_tinyb_DBTGattCharacteristic_readValueImpl(JNIEnv *env GATTCharacteristic *characteristic = getInstance<GATTCharacteristic>(env, obj); JavaGlobalObj::check(characteristic->getJavaObject(), E_FILE_LINE); - POctets res(GATTHandler::ClientMaxMTU, 0); + POctets res(GATTHandler::number(GATTHandler::Defaults::MAX_ATT_MTU), 0); if( !characteristic->readValue(res) ) { ERR_PRINT("Characteristic readValue failed: %s", characteristic->toString().c_str()); return env->NewByteArray((jsize)0); |