summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-28 04:06:35 +0200
committerSven Gothel <[email protected]>2020-06-28 04:06:35 +0200
commit2119425671fbca7a7bd7ce6e5abdaa128ea4e9b6 (patch)
treefb8d16cd2356475d146a9d7aa1238925596456ab /api
parentee81a5b84f7843d3507bb7c9e167cafc335d3f1b (diff)
DBTAdapter::mgmtEvDeviceFoundMgmt: Show count of device in discoveredDevices if already discovered
Should max return 1, however, analyzing issue having no more devices being discovered.
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTAdapter.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index e21216f6..c493f438 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -152,6 +152,7 @@ namespace direct_bt {
/** Returns index >= 0 if found, otherwise -1 */
static int findDeviceIdx(std::vector<std::shared_ptr<DBTDevice>> & devices, EUI48 const & mac);
static std::shared_ptr<DBTDevice> findDevice(std::vector<std::shared_ptr<DBTDevice>> & devices, EUI48 const & mac);
+ static int countDevice(std::vector<std::shared_ptr<DBTDevice>> & devices, EUI48 const & mac);
std::shared_ptr<DBTDevice> findDevice(std::vector<std::shared_ptr<DBTDevice>> & devices, DBTDevice const & device);
DBTManager& mgmt;