diff options
author | JF <jf@codingfield.com> | 2020-09-27 20:04:17 +0200 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2020-09-27 20:04:17 +0200 |
commit | efd0c9eff7000c71825221d3094e7bb709465fc2 (patch) | |
tree | d0e73cf9c19260328a729eb3ccc398ce8536b329 /src/Components/Ble/NimbleController.cpp | |
parent | 079d437016e2bdbd2161fb6b3f11f9d9e346709a (diff) | |
parent | 5d3a9744938b38c064379c3f78ace5a7dd87926f (diff) |
Merge branch 'batteryInformationService' of JF/PineTime into develop
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r-- | src/Components/Ble/NimbleController.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index 7dde9d0c..a8add0df 100644 --- a/src/Components/Ble/NimbleController.cpp +++ b/src/Components/Ble/NimbleController.cpp @@ -26,6 +26,7 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask, Pinetime::Controllers::Ble& bleController, DateTime& dateTimeController, Pinetime::Controllers::NotificationManager& notificationManager, + Controllers::Battery& batteryController, Pinetime::Drivers::SpiNorFlash& spiNorFlash) : systemTask{systemTask}, bleController{bleController}, @@ -37,7 +38,8 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask, anService{systemTask, notificationManager}, alertNotificationClient{systemTask, notificationManager}, currentTimeService{dateTimeController}, - musicService{systemTask} { + musicService{systemTask}, + batteryInformationService{batteryController} { } @@ -83,10 +85,9 @@ void NimbleController::Init() { currentTimeClient.Init(); currentTimeService.Init(); musicService.Init(); - anService.Init(); - dfuService.Init(); + batteryInformationService.Init(); int res; res = ble_hs_util_ensure_addr(0); ASSERT(res == 0); |