diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-10-17 06:23:44 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-10-17 06:23:44 (GMT) |
| commit | 60a49af886f16b4bbd8012cd711374f3fdb94efc (patch) | |
| tree | 08b164d2da41e0da609af671871ab235ca813e3e /src/components/ble/NimbleController.h | |
| parent | d1f50157c7e0c471ae0e260fdca82fc472635079 (diff) | |
Add MotionService : expose step count and RAW X/Y/Z values to the host.
Diffstat (limited to 'src/components/ble/NimbleController.h')
| -rw-r--r-- | src/components/ble/NimbleController.h | 5 |
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; |
