diff options
Diffstat (limited to 'src/components/motion')
| -rw-r--r-- | src/components/motion/MotionController.cpp | 11 | ||||
| -rw-r--r-- | src/components/motion/MotionController.h | 3 |
2 files changed, 0 insertions, 14 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; -} diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h index f80b11b..5385658 100644 --- a/src/components/motion/MotionController.h +++ b/src/components/motion/MotionController.h @@ -2,7 +2,6 @@ #include <cstdint> #include <drivers/Bma421.h> -#include <components/ble/MotionService.h> namespace Pinetime { namespace Controllers { @@ -49,7 +48,6 @@ namespace Pinetime { } void Init(Pinetime::Drivers::Bma421::DeviceTypes types); - void SetService(Pinetime::Controllers::MotionService* service); private: uint32_t nbSteps; @@ -60,7 +58,6 @@ namespace Pinetime { int16_t lastYForWakeUp = 0; bool isSensorOk = false; DeviceTypes deviceType = DeviceTypes::Unknown; - Pinetime::Controllers::MotionService* service = nullptr; int16_t lastXForShake = 0; int16_t lastYForShake = 0; |
