⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Refactor ESP32Board.h to save ~500 bytes of DRAM#1532

Merged
ripplebiz merged 1 commit intomeshcore-dev:devfrom
oltaco:esp32board.h-removewifi
Feb 5, 2026
Merged

Refactor ESP32Board.h to save ~500 bytes of DRAM#1532
ripplebiz merged 1 commit intomeshcore-dev:devfrom
oltaco:esp32board.h-removewifi

Conversation

@oltaco
Copy link
Contributor

@oltaco oltaco commented Jan 30, 2026

Instead of calling esp_wifi_get_mode() we can set a flag to inhibit sleep when calling wifi.begin(), and check it before going to sleep.

This saves ~500 bytes of DRAM and allows Tbeam to compile again, fixes #1526

I'll mark this as draft until I can confirm it works as intended, but my reading of the docs for esp_wifi_get_mode() suggests it should be fine.

saves ~500 bytes of dram and allows Tbeam to compile again
@IoTThinks
Copy link
Contributor

Great.
Let me test.

@oltaco
Copy link
Contributor Author

oltaco commented Feb 4, 2026

Great. Let me test.

Thank you! I haven't had time 😞

@oltaco
Copy link
Contributor Author

oltaco commented Feb 4, 2026

This fixes the build for LilyGo_TLora_V2_1_1_6_companion_radio_ble as well. 👍

@oltaco oltaco marked this pull request as ready for review February 4, 2026 20:47
@ripplebiz ripplebiz merged commit 4b9d546 into meshcore-dev:dev Feb 5, 2026
@IoTThinks
Copy link
Contributor

Merged already. Great.
Let me rebase to use the fix in this PR.

Thanks a lot.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants