From b8548ba8ef4730834cc953c4788875ba7f9a707e Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 7 Oct 2025 01:42:42 +0200 Subject: [PATCH] Revert "frequencies.c: TX_freq_check should return -1 or 0. Not 1." --- frequencies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frequencies.c b/frequencies.c index 1a71b950..ac9953dd 100644 --- a/frequencies.c +++ b/frequencies.c @@ -164,7 +164,7 @@ int32_t TX_freq_check(const uint32_t Frequency) // otherwise return '-1' if (Frequency < frequencyBandTable[0].lower || Frequency > frequencyBandTable[BAND_N_ELEM - 1].upper) - return -1; // not allowed outside this range + return 1; // not allowed outside this range if (Frequency >= BX4819_band1.upper && Frequency < BX4819_band2.lower) return -1; // BX chip does not work in this range