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

MotionService: Fix step notification on sleep #2272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MB512
Copy link

@MB512 MB512 commented Mar 14, 2025

When using BLE notifications for motion it seams that the code enabels the sending of each motion even in sleep mode.

Using BLE notifications for steps should work the same.

I don't know how much this would use the battery, but i think it could not be more than with motion notification.

Fixes #2271

Send btuetooth step notifications in sleep state just like motion notifications. Rename check function from IsMotionNotificationSubscribed to IsAnyNotificationSubscribed for clarity.
Copy link

github-actions bot commented Mar 14, 2025

Build size and comparison to main:

Section Size Difference
text 373136B 16B
data 948B 0B
bss 22536B 0B

Run in InfiniEmu

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

Successfully merging this pull request may close these issues.

Step notifications not working
1 participant