InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.75k stars 941 forks source link

Step counter doesn't start on new day #787

Open coneng96 opened 3 years ago

coneng96 commented 3 years ago

What happened?

Step counter doesn't start counting after 12AM unless watch is awaken

What should happen instead?

Even if you don't wake the watch it should start counting.

Reproduction steps

More details?

The counter will work if you have the wake up setting to Raise Wrist.

Version

v1.6.0

Companion app

n/a

pswilde commented 3 years ago

I experience this issue as well. It works with raise wrist wake as it's likely the action of putting the watch on is triggering this motion. I have that feature disabled and can be 3000 steps into a walk before I check the time. Not a vital issue, but one that would be good to fix.

drgnomage commented 3 years ago

Experiencing the exact same issue, had to turn off raise to wake so my battery life was more than 2 days and began noticing this.

ncartron commented 2 years ago

hum i'm not using any of "single tap/double tap/raise wrist" wake up methods, and my steps are properly counted (e.g. if i wake up at 2 am to drink water, then go back to bed, when i wake up and check time, i can see like 100 or 200 steps.

are you saying that the problem is with single/double tap wake up methods?

drgnomage commented 2 years ago

@ncartron I've found that if the bluetooth connection is up then it works as normal but if it's disconnected then it won't count steps until you wake the screen.

pshem commented 2 years ago

I'm impacted too, on version 1.8.0. The same code that resets the step count should probably initialize it, but I don't have an unsealed version of InfiniTime to experiment with.

efuentes25 commented 2 years ago

I will be working on a fix for this.

ITCactus commented 2 years ago

i noticed a bit different issue. but probably it's same from the different point of view:

InfiniTime counts the steps after the midnight, but when you unlock the PineTime the first time on day, it sends the counted steps on this day + previous day, then it resets to "0", and send/sync steps again with value "0".

so, for end user it looks like it does not count the steps, but actually there is an issue with a proper (?time for) resetting the counter. that issue also leads to the issue on companion app side (see Gadgetbridge#2783 for details).

@Riksu9000 i know this is quite an old issue, but could someone from InfiniTime team comment on this?

ljr55555 commented 1 year ago

I have the same problem -- InfiniTime version 1.13.0 with a build date of Jun 24, 2023. I guess I'll try turning on the wrist raise to wake because sometimes it's midday before I notice I've got zero steps.