Restore Companion boot display and default WiFi to opt-in
This commit is contained in:
1 parent
ad2f2097da
commit
0ccac4539d
11 files changed
+276
-11
No files matched your search
@@ -80,10 +80,11 @@ bool savePrefs(const DisplayPowerPrefs& prefs) {
|
||||
}
|
||||
}
|
||||
|
||||
bool loadDisplayPowerSettings(FILESYSTEM* fs, bool pairing_supported) {
|
||||
bool loadDisplayPowerSettings(FILESYSTEM* fs, bool pairing_supported, bool wake_on_boot) {
|
||||
settings_fs = fs;
|
||||
pairing_available = pairing_supported;
|
||||
DisplayPowerPrefs prefs;
|
||||
prefs.wake_on_boot = wake_on_boot;
|
||||
if (pairing_supported) prefs.battery.mode = prefs.usb.mode = DisplayMode::ButtonPairing;
|
||||
displayPowerPrefs() = prefs;
|
||||
if (!fs) return false;
|
||||
|
||||
Reference in new issue
Block a user