From a87a44f7cccd65839142cffb97b6f57d03ad6deb Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Mon, 21 Sep 2026 21:17:51 +1000 Subject: [PATCH] T-Deck Max: Wi-Fi off by default Signed-off-by: pelgraine <140762863+pelgraine@users.noreply.github.com> --- src/helpers/esp32/WifiRuntimeStore.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/helpers/esp32/WifiRuntimeStore.cpp b/src/helpers/esp32/WifiRuntimeStore.cpp index 67180d43..24c5362c 100644 --- a/src/helpers/esp32/WifiRuntimeStore.cpp +++ b/src/helpers/esp32/WifiRuntimeStore.cpp @@ -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 \ No newline at end of file