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

Backfill overlap avoidance #3872

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Navid200
Copy link
Collaborator

@Navid200 Navid200 commented Jan 26, 2025

I made two major mistakes in this PR: #3557
And it is not working.
I believe this PR is a solution.

My first mistake was that I overlooked that there are two different lines in the code that auto start a sensor for a session in progress. That PR attempted to address only one of them (Ob1G5StateMachine) and not the other (Home).

My second mistake was that I incorrectly used a method for finding last readings overlooking the need to ignore the sensor. By not ignoring the sensor, the method would detect that there is no local session and return null causing a full backfill causing overlap.

This PR addresses those two oversights. It also addresses a cosmetic issue. It creates a log (and start flag notification) showing that we have started an internal session because there is a session in progress on G7.

Tests
I have tested G6 to G7. The following shows an Android 11 Motorola.
Screenshot_20250126-115910

Screenshot_20250126-115940

I will test G7 to G7 in 5 days and report the results here.

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.

1 participant