diff --git a/Meshtastic.xcodeproj/project.pbxproj b/Meshtastic.xcodeproj/project.pbxproj index 298891c0..93583250 100644 --- a/Meshtastic.xcodeproj/project.pbxproj +++ b/Meshtastic.xcodeproj/project.pbxproj @@ -964,7 +964,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3.43; + MARKETING_VERSION = 1.3.44; PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClient; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTS_MACCATALYST = YES; @@ -996,7 +996,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3.43; + MARKETING_VERSION = 1.3.44; PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClient; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTS_MACCATALYST = YES; diff --git a/Meshtastic/Enums/CannedMessagesConfigEnums.swift b/Meshtastic/Enums/CannedMessagesConfigEnums.swift index a3268956..0864e5d4 100644 --- a/Meshtastic/Enums/CannedMessagesConfigEnums.swift +++ b/Meshtastic/Enums/CannedMessagesConfigEnums.swift @@ -10,9 +10,8 @@ enum ConfigPresets : Int, CaseIterable, Identifiable { case unset = 0 case rakRotaryEncoder = 1 - case tbeamThreeButtonScreen = 2 - case cardKB = 3 - case facesKB = 4 + case cardKB = 2 + case facesKB = 3 var id: Int { self.rawValue } var description: String { @@ -23,8 +22,6 @@ enum ConfigPresets : Int, CaseIterable, Identifiable { return "Manual Configuration" case .rakRotaryEncoder: return "RAK Rotary Encoder Module" - case .tbeamThreeButtonScreen: - return "TBEAM 3 Button OLED Screen" case .cardKB: return "M5 Stack Card KeyBoard" case .facesKB: @@ -37,35 +34,35 @@ enum ConfigPresets : Int, CaseIterable, Identifiable { // Default of 0 is off enum InputEventChars: Int, CaseIterable, Identifiable { - case keyNone = 0 - case keyUp = 17 - case keyDown = 18 - case keyLeft = 19 - case keyRight = 20 - case keySelect = 10 - case keyBack = 27 - case keyCancel = 24 + case none = 0 + case up = 17 + case down = 18 + case left = 19 + case right = 20 + case select = 10 + case back = 27 + case cancel = 24 var id: Int { self.rawValue } var description: String { get { switch self { - case .keyNone: + case .none: return "None" - case .keyUp: + case .up: return "Up" - case .keyDown: + case .down: return "Down" - case .keyLeft: + case .left: return "Left" - case .keyRight: + case .right: return "Right" - case .keySelect: + case .select: return "Select" - case .keyBack: + case .back: return "Back" - case .keyCancel: + case .cancel: return "Cancel" } } @@ -74,21 +71,21 @@ enum InputEventChars: Int, CaseIterable, Identifiable { switch self { - case .keyNone: + case .none: return ModuleConfig.CannedMessageConfig.InputEventChar.none - case .keyUp: + case .up: return ModuleConfig.CannedMessageConfig.InputEventChar.up - case .keyDown: + case .down: return ModuleConfig.CannedMessageConfig.InputEventChar.down - case .keyLeft: + case .left: return ModuleConfig.CannedMessageConfig.InputEventChar.left - case .keyRight: + case .right: return ModuleConfig.CannedMessageConfig.InputEventChar.right - case .keySelect: + case .select: return ModuleConfig.CannedMessageConfig.InputEventChar.select - case .keyBack: + case .back: return ModuleConfig.CannedMessageConfig.InputEventChar.back - case .keyCancel: + case .cancel: return ModuleConfig.CannedMessageConfig.InputEventChar.cancel } } diff --git a/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift b/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift index ea8560dc..9f7efe1d 100644 --- a/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift @@ -244,7 +244,7 @@ struct CannedMessagesConfig: View { } else if updown1Enabled { - cmc.allowInputSource = "upDownEnc1" + cmc.allowInputSource = "_any" } else { @@ -313,12 +313,12 @@ struct CannedMessagesConfig: View { // RAK Rotary Encoder updown1Enabled = false rotary1Enabled = false - inputbrokerPinA = 32 - inputbrokerPinB = 38 - inputbrokerPinPress = 37 - inputbrokerEventCw = InputEventChars.keyUp.rawValue - inputbrokerEventCcw = InputEventChars.keyDown.rawValue - inputbrokerEventPress = InputEventChars.keySelect.rawValue + inputbrokerPinA = 4 + inputbrokerPinB = 10 + inputbrokerPinPress = 9 + inputbrokerEventCw = InputEventChars.down.rawValue + inputbrokerEventCcw = InputEventChars.up.rawValue + inputbrokerEventPress = InputEventChars.select.rawValue } else if newPreset == 2 { @@ -328,9 +328,9 @@ struct CannedMessagesConfig: View { inputbrokerPinA = 25 inputbrokerPinB = 39 inputbrokerPinPress = 36 - inputbrokerEventCw = InputEventChars.keyUp.rawValue - inputbrokerEventCcw = InputEventChars.keyDown.rawValue - inputbrokerEventPress = InputEventChars.keySelect.rawValue + inputbrokerEventCw = InputEventChars.up.rawValue + inputbrokerEventCcw = InputEventChars.down.rawValue + inputbrokerEventPress = InputEventChars.select.rawValue } hasChanges = true diff --git a/Meshtastic/Views/Settings/SaveChannelQRCode.swift b/Meshtastic/Views/Settings/SaveChannelQRCode.swift index 82b38bd6..8d5e3f5c 100644 --- a/Meshtastic/Views/Settings/SaveChannelQRCode.swift +++ b/Meshtastic/Views/Settings/SaveChannelQRCode.swift @@ -13,10 +13,25 @@ struct SaveChannelQRCode: View { VStack { Text("Save Channel Settings?") .font(.title) - Text("These settings will replace the current LoRa Config and Channel Settings on your radio.") + Text("These settings will replace the current LoRa Config and Channel Settings on your radio. After everything saves your device will reboot.") .foregroundColor(.gray) .font(.callout) .padding() + Text(channelHash) + .font(.caption2) + .foregroundColor(.gray) + .padding() + + Button { + + } label: { + + Label("Save", systemImage: "square.and.arrow.down") + } + .buttonStyle(.bordered) + .buttonBorderShape(.capsule) + .controlSize(.large) + .padding() } .onChange(of: channelHash) { newSettings in var decodedString = newSettings.base64urlToBase64()