Add F_LOCK_PMR

This commit is contained in:
Armel FAUVEAU
2024-04-04 20:10:49 +02:00
parent fe1c3d010a
commit a562ff8479
3 changed files with 13 additions and 0 deletions

View File

@@ -222,6 +222,13 @@ int32_t TX_freq_check(const uint32_t Frequency)
return 0; return 0;
break; break;
#ifdef ENABLE_FEAT_F4HWN
case F_LOCK_PMR:
if (Frequency >= 44600625 && Frequency <= 44619375)
return 0;
break;
#endif
case F_LOCK_ALL: case F_LOCK_ALL:
break; break;

View File

@@ -45,6 +45,9 @@ enum TxLockModes_t {
F_LOCK_GB, F_LOCK_GB,
F_LOCK_430, F_LOCK_430,
F_LOCK_438, F_LOCK_438,
#ifdef ENABLE_FEAT_F4HWN
F_LOCK_PMR,
#endif
F_LOCK_ALL, // disable TX on all frequencies F_LOCK_ALL, // disable TX on all frequencies
F_LOCK_NONE, // enable TX on all frequencies F_LOCK_NONE, // enable TX on all frequencies
F_LOCK_LEN F_LOCK_LEN

View File

@@ -305,6 +305,9 @@ const char * const gSubMenu_F_LOCK[] =
"GB HAM\n144-148\n430-440", "GB HAM\n144-148\n430-440",
"137-174\n400-430", "137-174\n400-430",
"137-174\n400-438", "137-174\n400-438",
#ifdef ENABLE_FEAT_F4HWN
"PMR 446",
#endif
"DISABLE\nALL", "DISABLE\nALL",
"UNLOCK\nALL", "UNLOCK\nALL",
}; };