Merge pull request #440 from wutje/fix_tx_freq_check_return_value

frequencies.c: TX_freq_check should return -1 or 0. Not 1.
This commit is contained in:
Armel FAUVEAU authored and GitHub committed 2025-10-07 01:42:26 +02:00
commit 7d0eb8da21
1 file changed
+1 -1
+1 -1
View File
@@ -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