state_manager: Reset alarm state when threshold changes
Previously, the alarm would stay active even if you decreased the
threshold past the current air quality score.
Change-Id: I5a544498ef15a57f6d8834fd69ead3f55a2a32fc
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73628
Reviewed-by: Aaron Green <aarongreen@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-internal-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pw-internal-service-accounts.iam.gserviceaccount.com>
1 file changed