diff options
author | Sven Gothel <[email protected]> | 2023-11-23 14:20:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-11-23 14:20:27 +0100 |
commit | b07db7f0049ec5f44a172826b65733edbda943cb (patch) | |
tree | 2a5d618455a0a5865c841092e94ae91492a9bbfb /src/direct_bt | |
parent | 0b656b03999ebf408c796b922ebf73e2f2769db2 (diff) |
BTAdapter::startDiscovery: Use given DBGattServerRef in already discovering state
Diffstat (limited to 'src/direct_bt')
-rw-r--r-- | src/direct_bt/BTAdapter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/direct_bt/BTAdapter.cpp b/src/direct_bt/BTAdapter.cpp index 216c1302..7081d633 100644 --- a/src/direct_bt/BTAdapter.cpp +++ b/src/direct_bt/BTAdapter.cpp @@ -1191,6 +1191,7 @@ HCIStatusCode BTAdapter::startDiscovery(const DBGattServerRef& gattServerData_, to_string(currentNativeScanType).c_str(), to_string(currentMetaScanType).c_str(), toString(true).c_str()); discovery_policy = policy; } + gattServerData = gattServerData_; if( _print_device_lists || jau::environment::get().verbose ) { jau::PLAIN_PRINT(true, "BTAdapter::startDiscovery: End.0: Result %s, policy %s -> %s, currentScanType[native %s, meta %s] ...\n- %s", to_string(HCIStatusCode::SUCCESS).c_str(), |