aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-04-05 21:50:38 +0300
committerRiku Isokoski <riksu9000@gmail.com>2023-04-16 14:15:49 +0000
commit4d93ae6d27a94fe2a3c03b8f09bff2e23da30e12 (patch)
treeb2b893c8ab2bd76635b91690d85d64cb15710e5d /src
parent348d3de60bc61f04f11f5409c5950afb22aeb788 (diff)
MotionController: Remove IsOk variable
We should be able to assume MotionController is safe to use.
Diffstat (limited to 'src')
-rw-r--r--src/components/motion/MotionController.h9
-rw-r--r--src/systemtask/SystemTask.cpp1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index eb8d04aa..87dbcd1f 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -50,14 +50,6 @@ namespace Pinetime {
return accumulatedSpeed;
}
- void IsSensorOk(bool isOk) {
- isSensorOk = isOk;
- }
-
- bool IsSensorOk() const {
- return isSensorOk;
- }
-
DeviceTypes DeviceType() const {
return deviceType;
}
@@ -83,7 +75,6 @@ namespace Pinetime {
int16_t z = 0;
int32_t accumulatedSpeed = 0;
- bool isSensorOk = false;
DeviceTypes deviceType = DeviceTypes::Unknown;
Pinetime::Controllers::MotionService* service = nullptr;
};
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 539ff895..9dac95ee 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -435,7 +435,6 @@ void SystemTask::UpdateMotion() {
auto motionValues = motionSensor.Process();
- motionController.IsSensorOk(motionSensor.IsOk());
motionController.Update(motionValues.x, motionValues.y, motionValues.z, motionValues.steps);
if (settingsController.GetNotificationStatus() != Controllers::Settings::Notification::Sleep) {