summaryrefslogtreecommitdiff
path: root/src/components/ble/NimbleController.h
diff options
context:
space:
mode:
authorJF <JF002@users.noreply.github.com>2021-10-24 18:06:52 (GMT)
committerGitHub <noreply@github.com>2021-10-24 18:06:52 (GMT)
commit82ca526ec2db11d9e4aa2d91cd69ed2394e3a843 (patch)
treeaf91df7395abd8bed0d12c276b3703f46cbfadfd /src/components/ble/NimbleController.h
parent9538eb97166410ebc362addfb76ec54895491cd7 (diff)
parentb3a82288997556b04a64d452ec2067747f1fb706 (diff)
Merge pull request #754 from InfiniTimeOrg/add-motion-service
Add motion service
Diffstat (limited to 'src/components/ble/NimbleController.h')
-rw-r--r--src/components/ble/NimbleController.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ble/NimbleController.h b/src/components/ble/NimbleController.h
index 473bb1a..76f89ba 100644
--- a/src/components/ble/NimbleController.h
+++ b/src/components/ble/NimbleController.h
@@ -19,6 +19,7 @@
#include "NavigationService.h"
#include "ServiceDiscovery.h"
#include "HeartRateService.h"
+#include "MotionService.h"
namespace Pinetime {
namespace Drivers {
@@ -43,7 +44,8 @@ namespace Pinetime {
Pinetime::Controllers::NotificationManager& notificationManager,
Controllers::Battery& batteryController,
Pinetime::Drivers::SpiNorFlash& spiNorFlash,
- Controllers::HeartRateController& heartRateController);
+ Controllers::HeartRateController& heartRateController,
+ Controllers::MotionController& motionController);
void Init();
void StartAdvertising();
int OnGAPEvent(ble_gap_event* event);
@@ -95,6 +97,7 @@ namespace Pinetime {
BatteryInformationService batteryInformationService;
ImmediateAlertService immediateAlertService;
HeartRateService heartRateService;
+ MotionService motionService;
uint8_t addrType; // 1 = Random, 0 = PUBLIC
uint16_t connectionHandle = BLE_HS_CONN_HANDLE_NONE;