diff options
author | Joaquim <joaquim.org@gmail.com> | 2021-04-19 15:28:38 +0100 |
---|---|---|
committer | Joaquim <joaquim.org@gmail.com> | 2021-04-19 15:28:38 +0100 |
commit | cd4a3e1dfef7d9803aa726ef4c177a6d7d5e876d (patch) | |
tree | 00c3d4d8672b8eea29981e40c696c839093a9ef3 /src/components/settings/Settings.h | |
parent | bbc24e88b0e2126be39b073ffd734b2ab07c225d (diff) |
New Steps app
Settings to set the steps goal
More detail in Motion app
New 42px Font
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r-- | src/components/settings/Settings.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index 9cbbee62..f444cdc6 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -60,6 +60,12 @@ namespace Pinetime { }; Controllers::BrightnessController::Levels GetBrightness() const { return settings.brightLevel; }; + void SetStepsGoal( uint32_t goal ) { + if ( goal != settings.stepsGoal ) settingsChanged = true; + settings.stepsGoal = goal; + }; + uint32_t GetStepsGoal() const { return settings.stepsGoal; }; + private: Pinetime::Drivers::SpiNorFlash& spiNorFlash; |