summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.h
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-11-07 16:49:54 (GMT)
committerKieran Cawthray <kieranc@gmail.com>2021-11-07 16:49:54 (GMT)
commit18e3cc7038d0f6c0cebc5d042e0740f968f890db (patch)
tree4fd50ddece4d92c06ea0e16cc06902703a2b6202 /src/components/motion/MotionController.h
parent85d494a987e8edfd51fbb0eb6dfa04ea108cbb48 (diff)
parent4a5b5f954f12de1574af8e3efec094bb4bdbb542 (diff)
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r--src/components/motion/MotionController.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index ff71509..c72d8a4 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -2,6 +2,7 @@
#include <cstdint>
#include <drivers/Bma421.h>
+#include <components/ble/MotionService.h>
namespace Pinetime {
namespace Controllers {
@@ -39,6 +40,7 @@ namespace Pinetime {
}
void Init(Pinetime::Drivers::Bma421::DeviceTypes types);
+ void SetService(Pinetime::Controllers::MotionService* service);
private:
uint32_t nbSteps;
@@ -48,6 +50,7 @@ namespace Pinetime {
int16_t lastYForWakeUp = 0;
bool isSensorOk = false;
DeviceTypes deviceType = DeviceTypes::Unknown;
+ Pinetime::Controllers::MotionService* service = nullptr;
};
}
} \ No newline at end of file