From e235e104225893f4f0cf5af6632563632ea6a48d Mon Sep 17 00:00:00 2001 From: Aivaras Kasperaitis Date: Tue, 30 Jan 2024 20:39:02 +0200 Subject: [PATCH] F Lock PMR446 Add submenu to F Lock. Limit TX to PMR446 frequencies (44600625 - 4619375). --- frequencies.c | 5 +++++ settings.h | 1 + ui/menu.c | 1 + 3 files changed, 7 insertions(+) diff --git a/frequencies.c b/frequencies.c index df3a193fe..8c4a2514d 100644 --- a/frequencies.c +++ b/frequencies.c @@ -222,6 +222,11 @@ int32_t TX_freq_check(const uint32_t Frequency) return 0; break; + case F_LOCK_PMR: + if (Frequency >= 44600625 && Frequency <= 44619375) + return 0; + break; + case F_LOCK_ALL: break; diff --git a/settings.h b/settings.h index eadf2fe2f..5271e0b86 100644 --- a/settings.h +++ b/settings.h @@ -40,6 +40,7 @@ enum TxLockModes_t { F_LOCK_GB, F_LOCK_430, F_LOCK_438, + F_LOCK_PMR, F_LOCK_ALL, // disable TX on all frequencies F_LOCK_NONE, // enable TX on all frequencies F_LOCK_LEN diff --git a/ui/menu.c b/ui/menu.c index 62f5b7192..1a467b9c2 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -282,6 +282,7 @@ const char * const gSubMenu_F_LOCK[] = "GB HAM\n144-148\n430-440", "137-174\n400-430", "137-174\n400-438", + "PMR446", "DISABLE\nALL", "UNLOCK\nALL", };