aboutsummaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner00/dbt_scanner00.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/direct_bt_scanner00/dbt_scanner00.cpp')
-rw-r--r--examples/direct_bt_scanner00/dbt_scanner00.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/direct_bt_scanner00/dbt_scanner00.cpp b/examples/direct_bt_scanner00/dbt_scanner00.cpp
index 56702d2f..8f8b4db3 100644
--- a/examples/direct_bt_scanner00/dbt_scanner00.cpp
+++ b/examples/direct_bt_scanner00/dbt_scanner00.cpp
@@ -80,9 +80,9 @@ class MyAdapterStatusListener : public AdapterStatusListener {
fprintf(stderr, "****** CONNECTED: %s\n", device->toString(true).c_str());
(void)timestamp;
}
- void deviceDisconnected(std::shared_ptr<DBTDevice> device, const HCIErrorCode reason, const uint64_t timestamp) override {
+ void deviceDisconnected(std::shared_ptr<DBTDevice> device, const HCIStatusCode reason, const uint64_t timestamp) override {
fprintf(stderr, "****** DISCONNECTED: Reason 0x%X (%s): %s\n",
- static_cast<uint8_t>(reason), getHCIErrorCodeString(reason).c_str(), device->toString(true).c_str());
+ static_cast<uint8_t>(reason), getHCIStatusCodeString(reason).c_str(), device->toString(true).c_str());
(void)timestamp;
}