mirror of
https://github.com/meshtastic/firmware.git
synced 2026-11-07 23:04:49 -05:00
Light sleep suspends the USB-serial/JTAG console, and a CPU-only reset does not bring it back, so a capture goes dark for as long as the node sleeps - the same thing that cost r120 most of its runs. Nothing in r123 needs light sleep: the fix under test is on the deep-sleep path. MESHTASTIC_NO_LIGHT_SLEEP leaves the two timed transitions into stateLS out of PowerFSM, so no config can put the capture back in the dark. It is not an early return from doLightSleep(): lsIdle() reads an immediate ESP_SLEEP_WAKEUP_TIMER as a completed sleep chunk, so that shape would churn through ls_secs at loop speed instead of sleeping. Deep sleep is untouched. Only tbeam-s3-core-r123 defines it. Co-Authored-By: Jonathan Bennett <jbennett@incomsystems.biz> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTiifXrVc4YdonmLRCeWhw