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-05-05 20:58:15 +0100
commitd33be52bc9cec10e530e1390f1cf812c12cd830e (patch)
tree9e986f32a31154090316abba81cee8a182cf711d /src/Components/Ble/NimbleController.cpp
parent49a9a93ceffac325b008bc9fbfc41d571fa7e110 (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 77bab5de..eb765b80 100644
--- a/src/Components/Ble/NimbleController.cpp
+++ b/src/Components/Ble/NimbleController.cpp
@@ -30,7 +30,9 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
dateTimeController{dateTimeController},
notificationManager{notificationManager},
currentTimeClient{dateTimeController},
- alertNotificationClient{systemTask, notificationManager} {
+ alertNotificationClient{systemTask, notificationManager},
+ anService{systemTask, notificationManager},
+ pinetimeService{dateTimeController} {
}
@@ -75,7 +77,8 @@ void NimbleController::Init() {
deviceInformationService.Init();
currentTimeClient.Init();
pinetimeService.Init();
- pinetimeService.setDateTimeController(&dateTimeController);
+
+ anService.Init();
int res;
res = ble_hs_util_ensure_addr(0);