aboutsummaryrefslogtreecommitdiffstats
path: root/src/Components/Ble/NimbleController.cpp
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2020-07-26 15:58:57 +0200
committerGitHub <noreply@github.com>2020-07-26 15:58:57 +0200
commit4f51d429a57342a16cd3d250a2b8387a8101c6ba (patch)
tree90a388959c721ce8afd481f3f5ed47125b5aaf59 /src/Components/Ble/NimbleController.cpp
parentc96a53e1a8d203e18ccda24b3754037fad12a6ca (diff)
parent29b5caf895766ccca523faed2d3f88798ee571f4 (diff)
Merge branch 'develop' into patch-2
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r--src/Components/Ble/NimbleController.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp
index 561dbce4..d7bbd8be 100644
--- a/src/Components/Ble/NimbleController.cpp
+++ b/src/Components/Ble/NimbleController.cpp
@@ -6,6 +6,7 @@
#include <hal/nrf_rtc.h>
#include "NimbleController.h"
+#include "MusicService.h"
#include <services/gatt/ble_svc_gatt.h>
#include <services/gap/ble_svc_gap.h>
#include <host/util/util.h>
@@ -35,7 +36,8 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
currentTimeClient{dateTimeController},
anService{systemTask, notificationManager},
alertNotificationClient{systemTask, notificationManager},
- currentTimeService{dateTimeController} {
+ currentTimeService{dateTimeController},
+ musicService{systemTask} {
}
@@ -80,6 +82,7 @@ void NimbleController::Init() {
deviceInformationService.Init();
currentTimeClient.Init();
currentTimeService.Init();
+ musicService.Init();
anService.Init();
@@ -326,5 +329,7 @@ void NimbleController::StartDiscovery() {
}
-
+uint16_t NimbleController::connHandle() {
+ return connectionHandle;
+}