mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-10-23 10:42:26 +00:00
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:
commit
9fe008e5ef
1 file changed
+8
-1
@@ -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
|
||||
Reference in new issue
Block a user