Skip to content

Commit 7cc73b7

Browse files
Move callback function into anonymous namespace
1 parent 1bdaf58 commit 7cc73b7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/ble/NavigationService.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ namespace {
3838
constexpr ble_uuid128_t navNarrativeCharUuid {CharUuid(0x02, 0x00)};
3939
constexpr ble_uuid128_t navManDistCharUuid {CharUuid(0x03, 0x00)};
4040
constexpr ble_uuid128_t navProgressCharUuid {CharUuid(0x04, 0x00)};
41-
} // namespace
4241

43-
int NAVCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
44-
auto navService = static_cast<Pinetime::Controllers::NavigationService*>(arg);
45-
return navService->OnCommand(conn_handle, attr_handle, ctxt);
46-
}
42+
int NAVCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
43+
auto navService = static_cast<Pinetime::Controllers::NavigationService*>(arg);
44+
return navService->OnCommand(conn_handle, attr_handle, ctxt);
45+
}
46+
} // namespace
4747

4848
Pinetime::Controllers::NavigationService::NavigationService(Pinetime::System::SystemTask& system) : m_system(system) {
4949
characteristicDefinition[0] = {

0 commit comments

Comments
 (0)