Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Canadian frequency lock #533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions frequencies.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down