From 198f9143a481ac7196ba9f2be4935703ee70d82c Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sat, 24 Feb 2024 11:36:19 -0800 Subject: [PATCH] Only show ispower saving for esp32, or the 2 nrf roles it works with --- Meshtastic/Views/Settings/Config/PowerConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Views/Settings/Config/PowerConfig.swift b/Meshtastic/Views/Settings/Config/PowerConfig.swift index aa207f83..6a8a02b5 100644 --- a/Meshtastic/Views/Settings/Config/PowerConfig.swift +++ b/Meshtastic/Views/Settings/Config/PowerConfig.swift @@ -28,7 +28,7 @@ struct PowerConfig: View { ConfigHeader(title: "Power", config: \.powerConfig, node: node, onAppear: setPowerValues) Section { - if currentDevice?.architecture == .esp32 || currentDevice?.architecture == .esp32S3 { + if (currentDevice?.architecture == .esp32 || currentDevice?.architecture == .esp32S3) || (currentDevice?.architecture == .nrf52840 && (node?.deviceConfig?.role ?? 0 == 5 || node?.deviceConfig?.role ?? 0 == 6)) { Toggle(isOn: $isPowerSaving) { Label("Power Saving", systemImage: "bolt") Text("Will sleep everything as much as possible, for the tracker and sensor role this will also include the lora radio. Don't use this setting if you want to use your device with the phone apps or are using a device without a user button.")