summaryrefslogtreecommitdiff
path: root/src/components/ble
diff options
context:
space:
mode:
authorJonathan Vander Mey <jvandermey@evertz.com>2021-07-24 13:02:43 -0400
committerJonathan Vander Mey <jvandermey@evertz.com>2021-07-24 13:02:43 -0400
commit7cc73b7832d758e36a0f5b126aeb1e71a259a72d (patch)
tree7c2d49d6d686c379efac187149c3c58727fcbb82 /src/components/ble
parent1bdaf581a3e58c33ceb8fd766cc5f25c978f9cb5 (diff)
Move callback function into anonymous namespace
Diffstat (limited to 'src/components/ble')
-rw-r--r--src/components/ble/NavigationService.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/ble/NavigationService.cpp b/src/components/ble/NavigationService.cpp
index 0ab1fa9b..4bbe8b45 100644
--- a/src/components/ble/NavigationService.cpp
+++ b/src/components/ble/NavigationService.cpp
@@ -38,12 +38,12 @@ namespace {
constexpr ble_uuid128_t navNarrativeCharUuid {CharUuid(0x02, 0x00)};
constexpr ble_uuid128_t navManDistCharUuid {CharUuid(0x03, 0x00)};
constexpr ble_uuid128_t navProgressCharUuid {CharUuid(0x04, 0x00)};
-} // namespace
-int NAVCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
- auto navService = static_cast<Pinetime::Controllers::NavigationService*>(arg);
- return navService->OnCommand(conn_handle, attr_handle, ctxt);
-}
+ int NAVCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
+ auto navService = static_cast<Pinetime::Controllers::NavigationService*>(arg);
+ return navService->OnCommand(conn_handle, attr_handle, ctxt);
+ }
+} // namespace
Pinetime::Controllers::NavigationService::NavigationService(Pinetime::System::SystemTask& system) : m_system(system) {
characteristicDefinition[0] = {