Skip to content

Skip alarm checks until BFU reload completes#689

Open
bjorkert wants to merge 1 commit into
devfrom
fix-missed-reading-bfu-chime
Open

Skip alarm checks until BFU reload completes#689
bjorkert wants to merge 1 commit into
devfrom
fix-missed-reading-bfu-chime

Conversation

@bjorkert

Copy link
Copy Markdown
Member

On a Before-First-Unlock cold launch, the alarm task can run before performBFUReloadIfNeeded() reloads StorageValues. During that window the alarm list (and its snooze state), lastBGChecked, and alarm configuration are still stale pre-unlock values, so a spurious Missed Reading alert can sound before real state is loaded.

checkAlarms now returns early while needsBFUReload is true; the next scheduled tick evaluates normally once the reload completes.

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