From e842de9086ffc91a16a80225e3bd8312016f0456 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Mon, 20 Jun 2022 12:56:40 -0700 Subject: [PATCH] Check for nil connectedPeripheral --- MeshtasticApple/Views/Settings/LoRaConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MeshtasticApple/Views/Settings/LoRaConfig.swift b/MeshtasticApple/Views/Settings/LoRaConfig.swift index 17078884..9fb5afa6 100644 --- a/MeshtasticApple/Views/Settings/LoRaConfig.swift +++ b/MeshtasticApple/Views/Settings/LoRaConfig.swift @@ -250,7 +250,7 @@ struct LoRaConfig: View { "Are you sure?", isPresented: $isPresentingSaveConfirm ) { - Button("Save LoRa Config to device?") { + Button("Save LoRa Config to \(bleManager.connectedPeripheral != nil ? bleManager.connectedPeripheral.longName : "Unknown")?") { var lc = Config.LoRaConfig() lc.hopLimit = UInt32(hopLimit)