Added Blank FSService that exposes only version info

This commit is contained in:
Tim Keller
2021-10-17 01:09:26 +00:00
parent 42a5cdb5b7
commit f57f797ff5
5 changed files with 132 additions and 3 deletions

View File

@@ -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);