summaryrefslogtreecommitdiff
path: root/src/Components/Ble/NimbleController.cpp
diff options
context:
space:
mode:
authorAdam Pigg <adam@piggz.co.uk>2020-04-28 10:21:35 (GMT)
committerAdam Pigg <adam@piggz.co.uk>2020-04-28 10:21:35 (GMT)
commitf201c9afdc71eba0eb05837d09f37fcb59a76d1e (patch)
tree4f61e424133142ab789aa246900da10f3c729926 /src/Components/Ble/NimbleController.cpp
parentbe67b5297d63dfd0d0c8d732c3e2bce40af4e547 (diff)
Add a simple service to allow setting the time from a controlling
application
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r--src/Components/Ble/NimbleController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp
index 7894ff4..6a8257b 100644
--- a/src/Components/Ble/NimbleController.cpp
+++ b/src/Components/Ble/NimbleController.cpp
@@ -72,6 +72,9 @@ void NimbleController::Init() {
deviceInformationService.Init();
currentTimeClient.Init();
+ pinetimeService.Init();
+ pinetimeService.setDateTimeController(&dateTimeController);
+
int res;
res = ble_hs_util_ensure_addr(0);
res = ble_hs_id_infer_auto(0, &addrType);