summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/motion/MotionController.cpp')
-rw-r--r--src/components/motion/MotionController.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp
index 7dd3212..4a7a7eb 100644
--- a/src/components/motion/MotionController.cpp
+++ b/src/components/motion/MotionController.cpp
@@ -3,14 +3,6 @@
using namespace Pinetime::Controllers;
void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps) {
- if (this->nbSteps != nbSteps && service != nullptr) {
- service->OnNewStepCountValue(nbSteps);
- }
-
- if (service != nullptr && (this->x != x || this->y != y || this->z != z)) {
- service->OnNewMotionValues(x, y, z);
- }
-
this->x = x;
this->y = y;
this->z = z;
@@ -82,6 +74,3 @@ void MotionController::Init(Pinetime::Drivers::Bma421::DeviceTypes types) {
break;
}
}
-void MotionController::SetService(Pinetime::Controllers::MotionService* service) {
- this->service = service;
-}