Skip to content

Commit

Permalink
upd. frequencies, PMR, Range
Browse files Browse the repository at this point in the history
  • Loading branch information
RE3CON authored Nov 1, 2023
1 parent b0ae6c9 commit 1ef3765
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions frequencies.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
// the default AIRCOPY frequency
uint32_t g_aircopy_freq = 41002500;

const freq_band_table_t AIR_BAND = {10800000, 13700000};
const freq_band_table_t AIR_BAND = {10800000, 13600000};

// the BK4819 has 2 bands it covers, 18MHz ~ 630MHz and 760MHz ~ 1300MHz
const freq_band_table_t BX4819_BAND1 = { 1800000, 63000000};
const freq_band_table_t BX4819_BAND2 = {84000000, 130000000};
const freq_band_table_t BX4819_BAND1 = { 1500000, 63000000};
const freq_band_table_t BX4819_BAND2 = {76000000, 185000000};

const freq_band_table_t FREQ_BAND_TABLE[7] =
{
Expand Down Expand Up @@ -56,16 +56,16 @@ const freq_band_table_t FREQ_BAND_TABLE[7] =
#ifdef ENABLE_NOAA
const uint32_t NOAA_FREQUENCY_TABLE[10] =
{
16255000,
16240000,
16247500,
16242500,
16245000,
16250000,
16252500,
16152500,
16177500,
16327500
44600625,
44601875,
44603125,
44604375,
44605625,
44606875,
44608125,
44609375,
44610625,
44611875
};
#endif

Expand Down Expand Up @@ -210,7 +210,7 @@ int FREQUENCY_tx_freq_check(const uint32_t Frequency)
return -1; // BX radio chip does not work in this range

if (Frequency >= AIR_BAND.lower && Frequency < AIR_BAND.upper)
return -1; // TX not allowed in the airband
return 0; // TX not allowed in the airband

if (Frequency < FREQ_BAND_TABLE[0].lower || Frequency > FREQ_BAND_TABLE[ARRAY_SIZE(FREQ_BAND_TABLE) - 1].upper)
return -1; // TX not allowed outside this range
Expand Down

0 comments on commit 1ef3765

Please sign in to comment.