summaryrefslogtreecommitdiff
path: root/src/components/ble
diff options
context:
space:
mode:
authorJonathan Vander Mey <jonathan@vandermey.ca>2021-06-12 18:59:14 -0400
committerJF002 <JF002@users.noreply.github.com>2021-07-02 17:47:14 +0200
commitd13b0a7ec54e9149b353563bef70f4ecee92cc3f (patch)
tree1eb94ef233292658581a06b13758f290ed287ff3 /src/components/ble
parent4217a8cb650048252b6d294c9358a0c8de3b16f0 (diff)
Move local-only function into anonymous namespace
Diffstat (limited to 'src/components/ble')
-rw-r--r--src/components/ble/MusicService.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ble/MusicService.cpp b/src/components/ble/MusicService.cpp
index 5dfea503..4d7e950f 100644
--- a/src/components/ble/MusicService.cpp
+++ b/src/components/ble/MusicService.cpp
@@ -47,10 +47,9 @@ namespace {
constexpr ble_uuid128_t msRepeatCharUuid {CharUuid(0x0b, 0x00)};
constexpr ble_uuid128_t msShuffleCharUuid {CharUuid(0x0c, 0x00)};
-}
-
-int MusicCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
- return static_cast<Pinetime::Controllers::MusicService*>(arg)->OnCommand(conn_handle, attr_handle, ctxt);
+ int MusicCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) {
+ return static_cast<Pinetime::Controllers::MusicService*>(arg)->OnCommand(conn_handle, attr_handle, ctxt);
+ }
}
Pinetime::Controllers::MusicService::MusicService(Pinetime::System::SystemTask& system) : m_system(system) {