summaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner01/dbt_scanner01.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/direct_bt_scanner01/dbt_scanner01.cpp')
-rw-r--r--examples/direct_bt_scanner01/dbt_scanner01.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/direct_bt_scanner01/dbt_scanner01.cpp b/examples/direct_bt_scanner01/dbt_scanner01.cpp
index 9759faa6..e7933ad2 100644
--- a/examples/direct_bt_scanner01/dbt_scanner01.cpp
+++ b/examples/direct_bt_scanner01/dbt_scanner01.cpp
@@ -192,8 +192,8 @@ int main(int argc, char *argv[])
fprintf(stderr, "Adapter invalid.\n");
exit(1);
}
- if( !adapter.isEnabled() ) {
- fprintf(stderr, "Adapter not enabled: device %s, address %s: %s\n",
+ if( !adapter.isPowered() ) {
+ fprintf(stderr, "Adapter not powered: device %s, address %s: %s\n",
adapter.getName().c_str(), adapter.getAddressString().c_str(), adapter.toString().c_str());
exit(1);
}