Add averaging to wake threshold. Makes it take more then just a "flick" to turn on

This commit is contained in:
Tim Keller
2021-09-27 03:30:49 +00:00
parent 3ebf002f9d
commit 6d74820698
3 changed files with 7 additions and 3 deletions

View File

@@ -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;
};
}