mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-10-06 22:57:23 +00:00
EIO persisted on the core-1 flush task, which narrows the failure to shared-SPI interleave rather than core-0 starvation alone: the one always-working configuration is the LOOP TASK writing (reboot persist) -- when it writes, nothing else interleaves radio traffic between the SD transactions on the shared bus. (The pager port notes flagged exactly this: 'keep an eye on SD-write + RX overlap during history flush'.) The flush now self-heals: after N consecutive failed background writes it retries synchronously on the loop task (one UI hitch per flush while degraded), and a single success flips it back to the async task. N is a new setting (Settings -> General -> 'Chat save fallback', dropdown Off/1/2/3/5/8, default 2; Off = background retries only). Stored as TouchCfg v40 trailing field hist_sync_after with getter/setter. Builds verified: all five SD-relevant touch envs. Signed-off-by: Dan Vybiral <dan.vybiral@greencode.cz>