diff options
author | Sven Gothel <[email protected]> | 2020-05-26 13:23:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-26 13:23:28 +0200 |
commit | e5b36988d1df433dd3f2cc1c9b6da06628e7ee3c (patch) | |
tree | 7a93d2e1a6b4471fcbbe40e9ec1c2c218a2d1771 | |
parent | 8d5171e0937f01ba2ebf942ac252e53f3ee0d38b (diff) |
dbt_scanner10.cpp: startDiscovery( keepAlive=true ) if connector thread failed in block_discovery mode
-rw-r--r-- | examples/direct_bt_scanner10/dbt_scanner10.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp index 776c5736..2bc99027 100644 --- a/examples/direct_bt_scanner10/dbt_scanner10.cpp +++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp @@ -250,7 +250,7 @@ static void deviceConnectTask(std::shared_ptr<DBTDevice> device) { } fprintf(stderr, "****** Device Connector: End result %d of %s\n", res, device->toString().c_str()); if( !USE_WHITELIST && ( !BLOCK_DISCOVERY || !res ) ) { - device->getAdapter().startDiscovery(false); + device->getAdapter().startDiscovery( BLOCK_DISCOVERY ); } } |