Merge PR #547 from pelgraine: T-Deck Max boots with Wi-Fi off

Wi-Fi and BLE together at boot leave about 28% of internal RAM free on this
board, so it starts with BLE only; the Settings toggle persists any choice.
HAS_TDECK_MAX gated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Kaj SchittecatandClaude Opus 5 committed 2026-09-21 14:06:41 +02:00
commit 9fe008e5ef
1 file changed
+8 -1
+8 -1
View File
@@ -104,7 +104,14 @@ void wifiConfigClear() {
bool wifiConfigGetRadioEnabled() {
if (!s_begun) wifiConfigBegin();
#if defined(HAS_TDECK_MAX)
// T-Deck Max: Wi-Fi OFF until the user turns it on. Wi-Fi and BLE together
// at boot left ~28% of internal RAM free on this board; BLE (default on) is
// the companion transport. The Settings toggle persists whatever is chosen.
return s_prefs.getUChar(WIFI_CONFIG_RADIO_EN_KEY, 0) != 0;
#else
return s_prefs.getUChar(WIFI_CONFIG_RADIO_EN_KEY, 1) != 0;
#endif
}
void wifiConfigSetRadioEnabled(bool enabled) {
@@ -239,4 +246,4 @@ void wifiConfigApply() {
#endif
}
#endif
#endif