summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-26 03:11:04 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-26 03:25:17 (GMT)
commit8b7bbf4b84a008e42a0ebba8af316690af696d5b (patch)
tree21bcfb4f4da4b3f6b3ebb21d6dd85f080f8cecd3 /src/components/motion/MotionController.cpp
parent1589e31b71b0f45eebd6fb95b53248a156821abb (diff)
compactify app list
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;
-}