You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: AP mode touch detection and mandatory first-boot calibration
Bug fix — AP mode via touch:
Add DisplayManager::beginTouch() which initializes the XPT2046 touch
controller on Core 0 during boot, without needing Core 1 running.
isScreenTouched() now polls hardware directly when _ts is available.
This keeps the safe boot order: storage init (Core 1 off) → touch init
→ AP detection with working touch.
Feature — mandatory calibration on first boot:
When magic != 0xCA (factory reset or first boot), the full calibration
flow runs before entering the dashboard: sensitivity threshold →
4-point position calibration × 2 cycles. Core 0 blocks until complete.
The Cancel button during boot applies safe defaults and proceeds to
dashboard instead of going to Settings.
Calibration defaults tightened: xMin=300, xMax=3800, yMin=200, yMax=3700.
Tests: 49/49 pass. All 3 sensor configs build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments