summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-05-18 15:23:26 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-05-18 15:33:25 +0200
commit378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d (patch)
treef4aa571df53901a0cbc00d1ac9a86e23b7194180 /src/components
parent9ab298c09e273479822d10aad9f7bfe1d287ce75 (diff)
Reset
Diffstat (limited to 'src/components')
-rw-r--r--src/components/motion/MotionController.h6
-rw-r--r--src/components/settings/Settings.h10
2 files changed, 4 insertions, 12 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index 3a238262..bf644812 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -8,13 +8,13 @@ namespace Pinetime {
public:
void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps);
- int16_t X() const {
+ uint16_t X() const {
return x;
}
- int16_t Y() const {
+ uint16_t Y() const {
return y;
}
- int16_t Z() const {
+ uint16_t Z() const {
return z;
}
uint32_t NbSteps() const {
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 4409425b..18c87fd4 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -86,14 +86,6 @@ namespace Pinetime {
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;
struct SettingsData {
@@ -103,7 +95,7 @@ namespace Pinetime {
uint8_t clockFace = 0;
- uint32_t stepsGoal = 10000;
+ uint32_t stepsGoal = 1000;
uint32_t screenTimeOut = 15000;
WakeUpMode wakeUpMode = WakeUpMode::None;