Skip to content

Commit beec11d

Browse files
authored
Merge pull request #491 from armel/revert-440-fix_tx_freq_check_return_value
Revert "frequencies.c: TX_freq_check should return -1 or 0. Not 1."
2 parents 7d0eb8d + b8548ba commit beec11d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frequencies.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int32_t TX_freq_check(const uint32_t Frequency)
164164
// otherwise return '-1'
165165

166166
if (Frequency < frequencyBandTable[0].lower || Frequency > frequencyBandTable[BAND_N_ELEM - 1].upper)
167-
return -1; // not allowed outside this range
167+
return 1; // not allowed outside this range
168168

169169
if (Frequency >= BX4819_band1.upper && Frequency < BX4819_band2.lower)
170170
return -1; // BX chip does not work in this range

0 commit comments

Comments
 (0)