diff options
author | Sven Gothel <[email protected]> | 2020-08-25 05:24:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-25 05:24:17 +0200 |
commit | a6e68f1f2a70ffbc55f6da60fac3767db550e3b1 (patch) | |
tree | 5045b237efae0e9ee75e4ad677798ad77ab945eb /examples/direct_bt_scanner00 | |
parent | d3fcf4948480b9ab7f426cf54475e54aee1ce79b (diff) |
cmake: Fix set_target_properties(..) use proper target name and add declaration where needed; Fix source accordingly.
Diffstat (limited to 'examples/direct_bt_scanner00')
-rw-r--r-- | examples/direct_bt_scanner00/dbt_scanner00.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/direct_bt_scanner00/dbt_scanner00.cpp b/examples/direct_bt_scanner00/dbt_scanner00.cpp index e7348b30..a630db4a 100644 --- a/examples/direct_bt_scanner00/dbt_scanner00.cpp +++ b/examples/direct_bt_scanner00/dbt_scanner00.cpp @@ -80,12 +80,14 @@ class MyAdapterStatusListener : public AdapterStatusListener { } void deviceConnected(std::shared_ptr<DBTDevice> device, const uint16_t handle, const uint64_t timestamp) override { fprintf(stderr, "****** CONNECTED: %s\n", device->toString(true).c_str()); + (void)handle; (void)timestamp; } void deviceDisconnected(std::shared_ptr<DBTDevice> device, const HCIStatusCode reason, const uint16_t handle, const uint64_t timestamp) override { fprintf(stderr, "****** DISCONNECTED: Reason 0x%X (%s), old handle %s: %s\n", static_cast<uint8_t>(reason), getHCIStatusCodeString(reason).c_str(), uint16HexString(handle).c_str(), device->toString(true).c_str()); + (void)handle; (void)timestamp; } |