Added "lap" button to step counter
This commit is contained in:
parent
baa5954724
commit
d034bd131e
3 changed files with 57 additions and 8 deletions
|
|
@ -28,6 +28,12 @@ namespace Pinetime {
|
|||
uint32_t NbSteps() const {
|
||||
return nbSteps;
|
||||
}
|
||||
void SetPrevTotalSteps(uint32_t steps) {
|
||||
stepsAtLastLap = steps;
|
||||
}
|
||||
uint32_t GetPrevTotalSteps() const {
|
||||
return stepsAtLastLap;
|
||||
}
|
||||
bool ShouldWakeUp(bool isSleeping);
|
||||
|
||||
void IsSensorOk(bool isOk);
|
||||
|
|
@ -44,6 +50,7 @@ namespace Pinetime {
|
|||
|
||||
private:
|
||||
uint32_t nbSteps;
|
||||
uint32_t stepsAtLastLap = 0;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
int16_t z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue