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