diff options
| author | Joaquim <joaquim.org@gmail.com> | 2021-04-26 20:29:48 (GMT) |
|---|---|---|
| committer | Joaquim <joaquim.org@gmail.com> | 2021-04-26 20:29:48 (GMT) |
| commit | cd0d85dff95bbc5f285d92eb78a642aab1ae4b8b (patch) | |
| tree | fc568aa2516c8c64cc55eb0d08e9a929c11b454a /src/components/ble/ServiceDiscovery.cpp | |
| parent | 5fc07a8df7d18d1fa9c4971f2c7b69ea68db559b (diff) | |
| parent | eedff2c06c292bda8dcb92fc04c67097fe72e22f (diff) | |
Merge branch 'develop' of
https://github.com/JF002/InfiniTime into StepsApp
Diffstat (limited to 'src/components/ble/ServiceDiscovery.cpp')
| -rw-r--r-- | src/components/ble/ServiceDiscovery.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ble/ServiceDiscovery.cpp b/src/components/ble/ServiceDiscovery.cpp index 4d37b8b..b36b241 100644 --- a/src/components/ble/ServiceDiscovery.cpp +++ b/src/components/ble/ServiceDiscovery.cpp @@ -4,8 +4,7 @@ using namespace Pinetime::Controllers; -ServiceDiscovery::ServiceDiscovery(std::array<BleClient*, 2>&& clients) : clients{clients} { - +ServiceDiscovery::ServiceDiscovery(std::array<BleClient*, 2>&& clients) : clients {clients} { } void ServiceDiscovery::StartDiscovery(uint16_t connectionHandle) { @@ -16,7 +15,7 @@ void ServiceDiscovery::StartDiscovery(uint16_t connectionHandle) { void ServiceDiscovery::OnServiceDiscovered(uint16_t connectionHandle) { clientIterator++; - if(clientIterator != clients.end()) { + if (clientIterator != clients.end()) { DiscoverNextService(connectionHandle); } else { NRF_LOG_INFO("End of service discovery"); @@ -26,7 +25,7 @@ void ServiceDiscovery::OnServiceDiscovered(uint16_t connectionHandle) { void ServiceDiscovery::DiscoverNextService(uint16_t connectionHandle) { NRF_LOG_INFO("[Discovery] Discover next service"); - auto discoverNextService = [this](uint16_t connectionHandle){ + auto discoverNextService = [this](uint16_t connectionHandle) { this->OnServiceDiscovered(connectionHandle); }; (*clientIterator)->Discover(connectionHandle, discoverNextService); |
