diff options
| author | Adam Pigg <adam@piggz.co.uk> | 2020-04-28 17:39:26 (GMT) |
|---|---|---|
| committer | Adam Pigg <adam@piggz.co.uk> | 2020-05-05 19:58:15 (GMT) |
| commit | d33be52bc9cec10e530e1390f1cf812c12cd830e (patch) | |
| tree | 9e986f32a31154090316abba81cee8a182cf711d /src/Components/Ble/NimbleController.cpp | |
| parent | 49a9a93ceffac325b008bc9fbfc41d571fa7e110 (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.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index 77bab5d..eb765b8 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); |
