Skip to content

[BUG] Stopped 112ms gyro scan to fix CPU cycle#28

Merged
Circuit-Overtime merged 6 commits into
mainfrom
fix/startup-boot-multi-wifi
May 18, 2026
Merged

[BUG] Stopped 112ms gyro scan to fix CPU cycle#28
Circuit-Overtime merged 6 commits into
mainfrom
fix/startup-boot-multi-wifi

Conversation

@Circuit-Overtime
Copy link
Copy Markdown
Member

@Circuit-Overtime Circuit-Overtime commented May 18, 2026

Changes Made

  • apps/launcher/main.py: Added module-level _APPS_CACHE and _CATEGORIES_CACHE so list_apps() (which opens 20+ manifest.json files from flash) is only called once per roster change, not every drawer open. Added invalidate_apps_cache() hook for Store/Updates to call after install/uninstall. Added segment-timed _lap() prints inside on_enter to identify which phase is slow on real hardware.
  • apps/store/main.py: Calls invalidate_apps_cache() after a successful install or uninstall so the launcher drawer reflects the new roster immediately instead of waiting for reboot.
  • apps/wifi/main.py: Replaced subnet/gateway rows with Networks, Speed, and Ping rows. Added "nets" sub-page for saved-networks management (UP/DOWN to browse, A to connect + promote to priority 1, B to forget, LEFT to toggle metered). Added _run_speed_test() and _run_ping() with a _paint_busy() intermediate frame so the screen doesn't appear frozen during synchronous network calls. Updated module docstring and hint bar.

Checklist

  • MicroPython compat: no f-strings with =, no pathlib, no walrus in modules that ship to flash
  • No secrets committed (.env, secrets.py)
  • Flashed + smoke-tested on hardware
  • Tested locally:

@Circuit-Overtime Circuit-Overtime changed the title Fix/startup boot multi wifi [BUG] Stopped 112ms gyro scan to fix CPU cycle May 18, 2026
@elixpoo elixpoo added this to Dev May 18, 2026
@elixpoo elixpoo moved this to Todo in Dev May 18, 2026
@elixpoo elixpoo added the DEV Category: Dev label May 18, 2026
@Circuit-Overtime Circuit-Overtime merged commit 9f96e51 into main May 18, 2026
5 of 7 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Dev May 18, 2026
@Circuit-Overtime Circuit-Overtime linked an issue May 18, 2026 that may be closed by this pull request
4 tasks
@elixpoo
Copy link
Copy Markdown
Contributor

elixpoo commented May 18, 2026

[CHANGE LOG] 📋 Changelog updated for PR #28. View changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV Category: Dev

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

GYRO scanning I2C endpoint is killing CPU cycles

2 participants