Skip to content

fix(go): preserve sensors across Offline sleep - #62

Merged
samuelbles07 merged 3 commits into
developmentfrom
go/fix/offline-short-interval
Aug 11, 2026
Merged

fix(go): preserve sensors across Offline sleep#62
samuelbles07 merged 3 commits into
developmentfrom
go/fix/offline-short-interval

Conversation

@samuelbles07

Copy link
Copy Markdown
Collaborator

Summary

Keep PM and SCD4x measurement state consistent across Offline deep-sleep cycles so short timer wakes can produce valid sensor data without unnecessary warmup.

Changes

  • Keep SPS30 measuring when its power rail is held during short sleep
  • Reattach SCD4x to retained periodic measurement on warm wakes, with clean-init fallback
  • Add host coverage and update sensor power-management documentation
  • Add VHUB coverage for Offline 10, 30, and 60-second interval transitions

Validation

  • AirGradient Go ESP-IDF build passed
  • All 1286 host tests passed
  • VHUB JSON syntax and pre-commit checks passed
  • Hardware interval-cycle verification pending

Short sleeps persisted warm state after putting SPS30 to sleep, so timer wakes skipped warmup with the fan stopped.
Warm timer wakes were restarting periodic measurement and reading before the first five-second sample was ready.
@samuelbles07
samuelbles07 merged commit c41a782 into development Aug 11, 2026
8 checks passed
@samuelbles07
samuelbles07 deleted the go/fix/offline-short-interval branch August 11, 2026 15:37
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