summaryrefslogtreecommitdiff
path: root/src/components/ble/NimbleController.cpp
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-10-17 01:09:26 +0000
committerTim Keller <geekboy1011@gmail.com>2021-12-10 01:18:57 +0000
commitf57f797ff54d9ee8864d3fc62f0c8662df13aad8 (patch)
tree6e6b1a2fabce753c3feffe538e872b160a155f13 /src/components/ble/NimbleController.cpp
parent42a5cdb5b776c2cdeb08a8c6f26606282a809178 (diff)
Added Blank FSService that exposes only version info
Diffstat (limited to 'src/components/ble/NimbleController.cpp')
-rw-r--r--src/components/ble/NimbleController.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp
index acf4f94b..b5eb46b8 100644
--- a/src/components/ble/NimbleController.cpp
+++ b/src/components/ble/NimbleController.cpp
@@ -30,7 +30,7 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
Pinetime::Drivers::SpiNorFlash& spiNorFlash,
Controllers::HeartRateController& heartRateController,
Controllers::MotionController& motionController,
- Pinetime::Controllers::FS& fs)
+ Controllers::FS& fs)
: systemTask {systemTask},
bleController {bleController},
dateTimeController {dateTimeController},
@@ -49,7 +49,9 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
batteryInformationService {batteryController},
immediateAlertService {systemTask, notificationManager},
heartRateService {systemTask, heartRateController},
- motionService {systemTask, motionController},
+ motionService{systemTask, motionController},
+ fs {fs},
+ fsService {fs},
serviceDiscovery({&currentTimeClient, &alertNotificationClient}) {
}
@@ -97,7 +99,8 @@ void NimbleController::Init() {
immediateAlertService.Init();
heartRateService.Init();
motionService.Init();
-
+ fsService.Init();
+
int rc;
rc = ble_hs_util_ensure_addr(0);
ASSERT(rc == 0);