summaryrefslogtreecommitdiff
path: root/src/Components/Ble/NimbleController.cpp
diff options
context:
space:
mode:
authorAdam Pigg <adam@piggz.co.uk>2020-04-28 18:39:26 +0100
committerAdam Pigg <adam@piggz.co.uk>2020-04-28 18:39:26 +0100
commit5df4c1016ae9e0ca65061c12117691301ca93766 (patch)
treecaa79b6bc52f75957071c98cc9499ab9b89c9514 /src/Components/Ble/NimbleController.cpp
parent423a956d8f3fdbac9db310e3223280a4624ff49e (diff)
Run the alert notification service and simplify trhe pinetime service
initialization
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r--src/Components/Ble/NimbleController.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp
index 6a8257b8..90f60c0d 100644
--- a/src/Components/Ble/NimbleController.cpp
+++ b/src/Components/Ble/NimbleController.cpp
@@ -28,7 +28,9 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
dateTimeController{dateTimeController},
notificationManager{notificationManager},
currentTimeClient{dateTimeController},
- alertNotificationClient{systemTask, notificationManager} {
+ alertNotificationClient{systemTask, notificationManager},
+ anService{systemTask, notificationManager},
+ pinetimeService{dateTimeController} {
}
@@ -73,7 +75,8 @@ void NimbleController::Init() {
deviceInformationService.Init();
currentTimeClient.Init();
pinetimeService.Init();
- pinetimeService.setDateTimeController(&dateTimeController);
+
+ anService.Init();
int res;
res = ble_hs_util_ensure_addr(0);