diff --git a/Makefile b/Makefile index d3c7720..d950087 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ ENABLE_SCAN_RANGES ?= 1 ENABLE_FEAT_F4HWN ?= 1 ENABLE_FEAT_F4HWN_FIXED_PWR ?= 0 ENABLE_FEAT_F4HWN_SCREENSHOT ?= 0 +ENABLE_FEAT_F4HWN_PMR ?= 1 # ---- DEBUGGING ---- ENABLE_AM_FIX_SHOW_DATA ?= 0 @@ -407,6 +408,9 @@ endif ifeq ($(ENABLE_FEAT_F4HWN_SCREENSHOT),1) CFLAGS += -DENABLE_FEAT_F4HWN_SCREENSHOT endif +ifeq ($(ENABLE_FEAT_F4HWN_PMR),1) + CFLAGS += -DENABLE_FEAT_F4HWN_PMR +endif LDFLAGS = LDFLAGS += -z noexecstack -mcpu=cortex-m0 -nostartfiles -Wl,-T,firmware.ld -Wl,--gc-sections diff --git a/frequencies.c b/frequencies.c index c435dbe..ff8a494 100644 --- a/frequencies.c +++ b/frequencies.c @@ -222,7 +222,7 @@ int32_t TX_freq_check(const uint32_t Frequency) return 0; break; -#ifdef ENABLE_FEAT_F4HWN +#ifdef ENABLE_FEAT_F4HWN_PMR case F_LOCK_PMR: if (Frequency >= 44600625 && Frequency <= 44619375) return 0; diff --git a/settings.h b/settings.h index e91cb1d..fc71453 100644 --- a/settings.h +++ b/settings.h @@ -45,7 +45,7 @@ enum TxLockModes_t { F_LOCK_GB, F_LOCK_430, F_LOCK_438, -#ifdef ENABLE_FEAT_F4HWN +#ifdef ENABLE_FEAT_F4HWN_PMR F_LOCK_PMR, #endif F_LOCK_ALL, // disable TX on all frequencies diff --git a/ui/menu.c b/ui/menu.c index 3561787..f435766 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -290,7 +290,7 @@ const char * const gSubMenu_F_LOCK[] = "GB HAM\n144-148\n430-440", "137-174\n400-430", "137-174\n400-438", -#ifdef ENABLE_FEAT_F4HWN +#ifdef ENABLE_FEAT_F4HWN_PMR "PMR 446", #endif "DISABLE\nALL",