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

F Lock PMR446 #451

Open
wants to merge 3 commits 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
5 changes: 5 additions & 0 deletions frequencies.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down