From 6d748206983ca1ae7c929fba58d62ddfdb365650 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 27 Sep 2021 03:30:49 +0000 Subject: Add averaging to wake threshold. Makes it take more then just a "flick" to turn on --- src/components/motion/MotionController.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/motion/MotionController.h') 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; }; } -- cgit v1.2.3-70-g09d2