summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/motion/MotionController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp
index 12c3514..a7c5ecc 100644
--- a/src/components/motion/MotionController.cpp
+++ b/src/components/motion/MotionController.cpp
@@ -13,7 +13,7 @@ int16_t MotionController::G() {
float X = x; X *= X;
float Y = y; Y *= Y;
float Z = z; Z *= Z;
- return (int16_t) std::sqrtf(X + Y + Z);
+ return (int16_t) std::sqrt(X + Y + Z);
}
bool MotionController::Should_RaiseWake(bool isSleeping) {