Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot reset step count #24

Open
htrboy opened this issue Dec 15, 2024 · 1 comment
Open

Cannot reset step count #24

htrboy opened this issue Dec 15, 2024 · 1 comment

Comments

@htrboy
Copy link

htrboy commented Dec 15, 2024

Trying to reset the step counter at a certain time of the day. Calling ac.stepInit() in the watchface only seems to work when the watch is awake (screen is on). What is the correct way to call this function when the watch is in light sleep?

@jeffmer
Copy link
Owner

jeffmer commented Dec 16, 2024

I am afraid that you have to wake from light sleep to execute any code. Have a look at the code for the alarm utility. You can probably hack it to have a special alarm that resets the step counter without turning on the display or sounding the buzzer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants