From 13e9671e6cea5aa1a96758d35ab80646d80c19c4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 18 Sep 2020 03:00:53 +0200 Subject: dbt_scanner10: Also silence printSharedPtrListOfDevices if SILENT_GATT --- examples/direct_bt_scanner10/dbt_scanner10.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp index 63901e68..84d2ff13 100644 --- a/examples/direct_bt_scanner10/dbt_scanner10.cpp +++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp @@ -279,7 +279,9 @@ static void processConnectedDevice(std::shared_ptr device) { // GATT Service Processing // fprintf(stderr, "****** Processing Device: GATT start: %s\n", device->getAddressString().c_str()); - device->getAdapter().printSharedPtrListOfDevices(); + if( !SILENT_GATT ) { + device->getAdapter().printSharedPtrListOfDevices(); + } try { std::vector primServices = device->getGATTServices(); // implicit GATT connect... if( 0 == primServices.size() ) { @@ -375,7 +377,9 @@ exit: fprintf(stderr, "****** Processing Device: removing: %s\n", device->getAddressString().c_str()); device->remove(); } - device->getAdapter().printSharedPtrListOfDevices(); + if( !SILENT_GATT ) { + device->getAdapter().printSharedPtrListOfDevices(); + } if( 0 < MULTI_MEASUREMENTS ) { MULTI_MEASUREMENTS--; -- cgit v1.2.3