From e1ae4291de844caf259c7d17ac7e9de6eff85f36 Mon Sep 17 00:00:00 2001 From: CGsama Date: Fri, 29 Mar 2024 02:59:41 -0400 Subject: [PATCH] Add Canadian frequency lock --- frequencies.c | 7 +++++++ settings.h | 1 + ui/menu.c | 1 + 3 files changed, 9 insertions(+) diff --git a/frequencies.c b/frequencies.c index df3a193fe..680a3f9e1 100644 --- a/frequencies.c +++ b/frequencies.c @@ -194,6 +194,13 @@ int32_t TX_freq_check(const uint32_t Frequency) return 0; break; + case F_LOCK_ISED: + if (Frequency >= 14400000 && Frequency < 14800000) + return 0; + if (Frequency >= 43000000 && Frequency < 45000000) + return 0; + break; + case F_LOCK_CE: if (Frequency >= 14400000 && Frequency < 14600000) return 0; diff --git a/settings.h b/settings.h index 16b9ac01f..e66c621b7 100644 --- a/settings.h +++ b/settings.h @@ -36,6 +36,7 @@ typedef enum POWER_OnDisplayMode_t POWER_OnDisplayMode_t; enum TxLockModes_t { F_LOCK_DEF, //all default frequencies + configurable F_LOCK_FCC, + F_LOCK_ISED, F_LOCK_CE, F_LOCK_GB, F_LOCK_430, diff --git a/ui/menu.c b/ui/menu.c index f5855e521..5152ff923 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -278,6 +278,7 @@ const char * const gSubMenu_F_LOCK[] = { "DEFAULT+\n137-174\n400-470", "FCC HAM\n144-148\n420-450", + "ISED HAM\n144-148\n430-450", "CE HAM\n144-146\n430-440", "GB HAM\n144-148\n430-440", "137-174\n400-430",