diff options
author | Tim Keller <geekboy1011@gmail.com> | 2021-09-27 03:30:49 +0000 |
---|---|---|
committer | Tim Keller <geekboy1011@gmail.com> | 2022-01-04 01:59:01 +0000 |
commit | 6d748206983ca1ae7c929fba58d62ddfdb365650 (patch) | |
tree | eb156d81507e897a8648df49fbd7b00da4e87e0d /src/components/motion/MotionController.h | |
parent | 3ebf002f9db75513d036c0eaa0863e75882b3a40 (diff) |
Add averaging to wake threshold. Makes it take more then just a "flick" to turn on
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r-- | src/components/motion/MotionController.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h index 28f7d3a7..aee9e63f 100644 --- a/src/components/motion/MotionController.h +++ b/src/components/motion/MotionController.h @@ -65,6 +65,7 @@ namespace Pinetime { int16_t lastXForShake = 0; int16_t lastYForShake = 0; int16_t lastZForShake = 0; + int32_t accumulatedspeed = 0; uint32_t lastShakeTime = 0; }; } |