diff options
author | Sven Gothel <[email protected]> | 2021-01-30 01:37:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-30 01:37:14 +0100 |
commit | 20492689931629dd60ad459e72ab2e7e385257d4 (patch) | |
tree | 2b26d28e8d596f1a1122b435a6f221ca2ad53999 | |
parent | 56dc0c9d00668fab4fe9b1935081589982487bc1 (diff) |
DBTScanner10/dbt_scanner10: Use better block formatting, don't hide block {}
-rw-r--r-- | examples/direct_bt_scanner10/dbt_scanner10.cpp | 3 | ||||
-rw-r--r-- | examples/java/DBTScanner10.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp index 2660b288..215fb065 100644 --- a/examples/direct_bt_scanner10/dbt_scanner10.cpp +++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp @@ -591,7 +591,8 @@ static void connectDiscoveredDevice(std::shared_ptr<BTDevice> device) { my_ltk_resp.read(KEY_PATH, device->getAddressAndType(), true /* responder */) && device->setConnSecurity(my_ltk_init.sec_level, my_ltk_init.io_cap) && HCIStatusCode::SUCCESS == device->setLongTermKeyInfo(my_ltk_init.smp_ltk) && - HCIStatusCode::SUCCESS == device->setLongTermKeyInfo(my_ltk_resp.smp_ltk) ) { + HCIStatusCode::SUCCESS == device->setLongTermKeyInfo(my_ltk_resp.smp_ltk) ) + { fprintf(stderr, "****** Connecting Device: Loaded LTKs from file successfully\n"); fprintf(stderr, "- init %s\n", my_ltk_init.toString().c_str()); fprintf(stderr, "- resp %s\n", my_ltk_resp.toString().c_str()); diff --git a/examples/java/DBTScanner10.java b/examples/java/DBTScanner10.java index 114f4f6f..a4b7e908 100644 --- a/examples/java/DBTScanner10.java +++ b/examples/java/DBTScanner10.java @@ -569,7 +569,8 @@ public class DBTScanner10 { my_ltk_resp.read(KEY_PATH, device.getAddressAndType(), true /* responder */) && device.setConnSecurity(my_ltk_init.sec_level, my_ltk_init.io_cap) && HCIStatusCode.SUCCESS == device.setLongTermKeyInfo(my_ltk_init.smp_ltk) && - HCIStatusCode.SUCCESS == device.setLongTermKeyInfo(my_ltk_resp.smp_ltk) ) { + HCIStatusCode.SUCCESS == device.setLongTermKeyInfo(my_ltk_resp.smp_ltk) ) + { println("****** Connecting Device: Loaded LTKs from file successfully"); println("- init "+my_ltk_init.toString()); println("- resp "+my_ltk_resp.toString()); |