From 20aef5a83fcfe89d2824ec63a4d266f03412c407 Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 22 Oct 2023 00:40:05 +0300 Subject: [PATCH] Adjust NimbleController for changes in InfiniTime Adjust NimbleController constructor for "Setting to disable DFU and FS access" in InfiniTime --- sim/components/ble/NimbleController.cpp | 3 ++- sim/components/ble/NimbleController.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sim/components/ble/NimbleController.cpp b/sim/components/ble/NimbleController.cpp index 3684d25..ddff162 100644 --- a/sim/components/ble/NimbleController.cpp +++ b/sim/components/ble/NimbleController.cpp @@ -30,7 +30,8 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask, Pinetime::Drivers::SpiNorFlash& spiNorFlash, Controllers::HeartRateController& heartRateController, Controllers::MotionController& motionController, - Controllers::FS& fs) + Controllers::FS& fs, + Controllers::Settings& settingsController) : systemTask {systemTask}, bleController {bleController}, dateTimeController {dateTimeController}, diff --git a/sim/components/ble/NimbleController.h b/sim/components/ble/NimbleController.h index ce7e8d7..1c8429c 100644 --- a/sim/components/ble/NimbleController.h +++ b/sim/components/ble/NimbleController.h @@ -53,7 +53,8 @@ namespace Pinetime { Pinetime::Drivers::SpiNorFlash& spiNorFlash, Controllers::HeartRateController& heartRateController, Controllers::MotionController& motionController, - Pinetime::Controllers::FS& fs); + Pinetime::Controllers::FS& fs, + Controllers::Settings& settingsController); void Init(); void StartAdvertising(); // int OnGAPEvent(ble_gap_event* event);