aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dbt_scanner10.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-09-29 22:13:19 +0200
committerSven Gothel <[email protected]>2021-09-29 22:13:19 +0200
commitc632d5ebd5adc869e0ff1e2295d75187118a488c (patch)
treeeef8d8b777b8ac8440b34e89b69d132d4ad80c97 /examples/dbt_scanner10.cpp
parentb28ee2b237fc053f4582fe296eff3f9e83e1c690 (diff)
dbt_scanner10: Drop device->getGattHandler()->getCharListenerCount()
Diffstat (limited to 'examples/dbt_scanner10.cpp')
-rw-r--r--examples/dbt_scanner10.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/dbt_scanner10.cpp b/examples/dbt_scanner10.cpp
index d51e8b32..05920022 100644
--- a/examples/dbt_scanner10.cpp
+++ b/examples/dbt_scanner10.cpp
@@ -504,8 +504,8 @@ static void processReadyDevice(std::shared_ptr<BTDevice> device) {
std::shared_ptr<BTGattChar::Listener> cl = std::make_shared<MyGATTEventListener>(i, j);
bool cccdRet = serviceChar->addCharListener( cl, cccdEnableResult );
if( !QUIET ) {
- fprintf_td(stderr, " [%2.2d.%2.2d] Characteristic-Listener: Notification(%d), Indication(%d): Added %d; %u charListener\n",
- (int)i, (int)j, cccdEnableResult[0], cccdEnableResult[1], cccdRet, device->getGattHandler()->getCharListenerCount());
+ fprintf_td(stderr, " [%2.2d.%2.2d] Characteristic-Listener: Notification(%d), Indication(%d): Added %d\n",
+ (int)i, (int)j, cccdEnableResult[0], cccdEnableResult[1], cccdRet);
fprintf_td(stderr, "\n");
}
}
@@ -519,9 +519,8 @@ static void processReadyDevice(std::shared_ptr<BTDevice> device) {
}
exit:
- const size_t totalCharListener = device->getGattHandler()->getCharListenerCount();
- fprintf_td(stderr, "****** Processing Ready Device: End-1: Success %d on %s; devInProc %zu; %zu charListener\n",
- success, device->toString().c_str(), BTDeviceRegistry::getProcessingDeviceCount(), totalCharListener);
+ fprintf_td(stderr, "****** Processing Ready Device: End-1: Success %d on %s; devInProc %zu\n",
+ success, device->toString().c_str(), BTDeviceRegistry::getProcessingDeviceCount());
BTDeviceRegistry::removeFromProcessingDevices(device->getAddressAndType());