Commit Graph
1 Commits
Author SHA1 Message Date
Kaj SchittecatandClaude Opus 5.5 9739e96020 touch(T-Deck Pro): Wi-Fi starts next to Bluetooth, the e-paper draw band moves to PSRAM (#763)
A Wi-Fi switch checks before the radio's first start after boot that 50 KB of
internal RAM is free (and a 20 KB block), the reserve the boot co-init and a
cold Bluetooth start use. With Bluetooth on, the T-Deck Pro had 50676 free,
524 bytes short, so Wi-Fi only came up with Bluetooth turned off first.

The Pro and the Max kept their LVGL draw band (240 x 24, 11.5 KB) in internal
DMA RAM, but the e-paper flush only copies it with the CPU into the driver's
PSRAM canvas, so it never needed that RAM. It now lives in PSRAM like the
T-Deck's, which leaves the check over 10 KB to spare instead of a hair under.
New CAP_EPAPER names the e-paper boards for this and the screensaver gate.

The check itself moves into WifiColdStartGate.h with a host test that runs
the issue's numbers. The Pager keeps skipping it: its main loop orders the
start and reports a failed allocation itself. That handoff is not a memory
fix (it pauses Bluetooth traffic, NimBLE stays resident) and the other boards'
loop has no fallback when esp_wifi_init fails, so it is not ported here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 08:12:55 +01:00