From 699e87020612f87c5773fa5fbd257fe2b3bc5d50 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 3 Jan 2023 23:24:35 -0800 Subject: [PATCH] Stupid index --- Meshtastic/Views/Settings/Channels.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Views/Settings/Channels.swift b/Meshtastic/Views/Settings/Channels.swift index b335064e..504b0087 100644 --- a/Meshtastic/Views/Settings/Channels.swift +++ b/Meshtastic/Views/Settings/Channels.swift @@ -91,7 +91,7 @@ struct Channels: View { Button { let key = generateChannelKey(size: 32) channelName = "" - channelIndex = Int32((node!.myInfo!.channels!.array.count) - 1) + channelIndex = Int32(node!.myInfo!.channels!.array.count) channelRole = 2 channelKey = key uplink = false