From cd4a3e1dfef7d9803aa726ef4c177a6d7d5e876d Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 19 Apr 2021 15:28:38 +0100 Subject: New Steps app Settings to set the steps goal More detail in Motion app New 42px Font --- src/components/settings/Settings.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/components/settings/Settings.h') 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; -- cgit v1.2.3-70-g09d2