The calibration screen was invisible the whole time
This one took embarrassingly long to run down. It started as "touch stopped working after recalibrating" — which sent us chasing calibration data validation, then a suspected flaky touch controller (the readings really were inconsistent, that part wasn't imagined), then a "frozen board" that turned out to be a clean 15-second timeout with nothing wrong at all. The actual bug, several layers down: the calibration screen draws into an offscreen buffer that nothing ever pushes to the display. It was rendering "TAP EACH CROSSHAIR" and four crosshairs into thin air the entire time — no wonder tapping never registered anything, there was nothing on screen to tap. A much longer chase than it should have been for what turned out to be a one-line fix.
The upside: everything built along the way to rule out the wrong theories is a genuine improvement that's staying in. Calibration is meaningfully more robust now than it was before any of this started.
The actually-useful part
- Fixed: the interactive touch calibration screen now actually renders to the display — it was drawing into an offscreen buffer that was never shown
- Fixed: saved touch calibration is now validated before it's trusted — a corrupted or degenerate result falls back to the compiled-in defaults instead of silently breaking every touch afterward
- Fixed: the validation threshold is now touch-type-aware — a resistive-panel calibration with a too-narrow raw range is caught even when the range technically isn't degenerate
- Fixed: a touch landing just past a calibrated edge is now clamped into bounds instead of being discarded outright
- Fixed: calibration can no longer hang indefinitely waiting on a touch that never comes — it now times out cleanly with a "try again" message
- Changed: license is now GPL-3.0 (was CPL-1.0)