Skip to content

Feat: Allow ESP32 light sleep when WiFi is inactive#10572

Open
h3lix1 wants to merge 1 commit into
meshtastic:developfrom
h3lix1:power-fsm-runtime-wifi-sleep
Open

Feat: Allow ESP32 light sleep when WiFi is inactive#10572
h3lix1 wants to merge 1 commit into
meshtastic:developfrom
h3lix1:power-fsm-runtime-wifi-sleep

Conversation

@h3lix1
Copy link
Copy Markdown
Contributor

@h3lix1 h3lix1 commented May 28, 2026

Remove the HAS_WIFI compile-time wrapper from ESP32 PowerFSM light-sleep transitions. Boards without WiFi support can still use light sleep, while active WiFi remains a runtime blocker.

This includes a minor cleanup removing defined(MESHTASTIC_EXCLUDE_WIFI) from the if to include the header.

This leaves TRACKER and SENSOR roles alone, as they have their own sleep transitions.

This is part of the ESP32 Power Saving series of diffs.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)
      xiao wio esp32-s3

@github-actions github-actions Bot added needs-review Needs human review hardware-support Hardware related: new devices or modules, problems specific to hardware labels May 28, 2026
@h3lix1 h3lix1 force-pushed the power-fsm-runtime-wifi-sleep branch from b8aa65c to cc6f41c Compare May 28, 2026 03:58
@h3lix1 h3lix1 changed the title Use runtime WiFi state for ESP32 light sleep Allow ESP32 light sleep when WiFi is inactive May 28, 2026
@h3lix1 h3lix1 changed the title Allow ESP32 light sleep when WiFi is inactive Feat: Allow ESP32 light sleep when WiFi is inactive May 28, 2026
@Nevermore-42
Copy link
Copy Markdown

This would be very helpful, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hardware-support Hardware related: new devices or modules, problems specific to hardware needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants