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

@@ -173,7 +173,7 @@ namespace Pinetime {
private:
Pinetime::Controllers::FS& fs;
static constexpr uint32_t settingsVersion = 0x0004;
static constexpr uint32_t settingsVersion = 0x0003;
struct SettingsData {
uint32_t version = settingsVersion;
uint32_t stepsGoal = 10000;
@@ -187,7 +187,7 @@ namespace Pinetime {
PineTimeStyle PTS;
std::bitset<4> wakeUpMode {0};
uint16_t shakeWakeThreshold = 300;
uint16_t shakeWakeThreshold = 150;
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
};