diff options
Diffstat (limited to 'examples/direct_bt_scanner01/dbt_scanner01.cpp')
-rw-r--r-- | examples/direct_bt_scanner01/dbt_scanner01.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/direct_bt_scanner01/dbt_scanner01.cpp b/examples/direct_bt_scanner01/dbt_scanner01.cpp index ca774277..10eca512 100644 --- a/examples/direct_bt_scanner01/dbt_scanner01.cpp +++ b/examples/direct_bt_scanner01/dbt_scanner01.cpp @@ -187,14 +187,6 @@ int main(int argc, char *argv[]) const int64_t t0 = getCurrentMilliseconds(); - if( doHCI_Connect ) { - std::shared_ptr<HCIHandler> hci = adapter.openHCI(); - if( nullptr == hci || !hci->isOpen() ) { - fprintf(stderr, "Couldn't open HCI from %s\n", adapter.toString().c_str()); - exit(1); - } - } - while( ok && ( forever || !foundDevice ) ) { ok = adapter.startDiscovery(true /* keepAlive */); if( !ok) { @@ -327,7 +319,6 @@ int main(int argc, char *argv[]) #endif /* SHOW_STATIC_SERVICE_CHARACTERISTIC_COMPOSITION */ out: - adapter.closeHCI(); return 0; } |