From 2795c4cf69e0e71626e186309ac742eb41f8d7bf Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 27 Jun 2024 07:40:31 -0700 Subject: [PATCH] Only allow 6 characters for call sign --- Meshtastic/Views/Settings/UserConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Views/Settings/UserConfig.swift b/Meshtastic/Views/Settings/UserConfig.swift index e58d4c83..3db4665a 100644 --- a/Meshtastic/Views/Settings/UserConfig.swift +++ b/Meshtastic/Views/Settings/UserConfig.swift @@ -51,7 +51,7 @@ struct UserConfig: View { .onChange(of: longName, perform: { _ in let totalBytes = longName.utf8.count // Only mess with the value if it is too big - if totalBytes > (isLicensed ? 8 : 36) { + if totalBytes > (isLicensed ? 6 : 36) { longName = String(longName.dropLast()) } })