state_manager: Immediate change states on button press

Previously the production app would hold the light solid while any button was
pressed and would only switch modes after the button's release.

Change-Id: I12a5b37b1dd53c3ab9ba88397c956563776ef26e
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73159
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Aaron Green <aarongreen@google.com>
2 files changed
tree: b6c5f5298219bdf757d8b2e5f8d2c17b5aba6ff8
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .clang-format
  14. .clangd.shared
  15. .gitignore
  16. .pw_console.yaml
  17. AUTHORS
  18. BUILD.bazel
  19. CONTRIBUTING.md
  20. LICENSE
  21. MODULE.bazel
  22. OWNERS
  23. pigweed.json
  24. README.md
README.md

Pigweed Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Pigweed.