From ec7f30ed96d932daeffe438109ed030499188e21 Mon Sep 17 00:00:00 2001 From: OneOfEleven Date: Thu, 12 Oct 2023 11:03:58 +0100 Subject: [PATCH] Added AIRCOPY frequency value variable --- firmware.bin | Bin 61440 -> 61440 bytes firmware.packed.bin | Bin 61458 -> 61458 bytes frequencies.c | 3 +++ frequencies.h | 4 ++++ helper/boot.c | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/firmware.bin b/firmware.bin index 6d4de924684d4bc5cf8f0876f723d051c85d380b..60cc00c86c03c2feb63e1f45fbf185fccb2d54bb 100644 GIT binary patch delta 57 zcmZp8z})bFc|-IScEiME1Ir|X%}H0TbIL+FItu>DB?^W{3PuJ-#tMdpRt82^CZ?Oi I?yV9808XkBvH$=8 delta 57 zcmZp8z})bFc|-ISb~6(L14F~)%}H0TbIL+FItu>DB?^W{3PuJ-#tMc8RwgD^h8CN{ I?yV9805K2|^#A|> diff --git a/firmware.packed.bin b/firmware.packed.bin index 6f2d6081dd0f01904c578ed73f12f26119deacb0..77cf7684a3eb7e82e12840e8b52f13e99c2096c9 100644 GIT binary patch delta 73 zcmV-P0Ji^<-~*E21F!}l2YL0FDlaHu`m(cYZFDlaHu`m(cYZ$BVj%QW=vu56^5dv}tPhlR( diff --git a/frequencies.c b/frequencies.c index 53e2072..ffc9a63 100644 --- a/frequencies.c +++ b/frequencies.c @@ -18,6 +18,9 @@ #include "misc.h" #include "settings.h" +// the initial AIRCOPY frequency to use +const uint32_t g_air_copy_freq = 41002500; + // 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}; diff --git a/frequencies.h b/frequencies.h index d4d5e1f..d2fbecf 100644 --- a/frequencies.h +++ b/frequencies.h @@ -19,11 +19,15 @@ #include +#include "frequencies.h" + typedef struct { const uint32_t lower; const uint32_t upper; } freq_band_table_t; +extern const uint32_t g_air_copy_freq; + extern const freq_band_table_t BX4819_band1; extern const freq_band_table_t BX4819_band2; diff --git a/helper/boot.c b/helper/boot.c index b048988..c1d42f6 100644 --- a/helper/boot.c +++ b/helper/boot.c @@ -80,7 +80,7 @@ void BOOT_ProcessMode(boot_mode_t Mode) g_eeprom.key2_short_press_action = ACTION_OPT_NONE; g_eeprom.key2_long_press_action = ACTION_OPT_NONE; - RADIO_InitInfo(g_rx_vfo, FREQ_CHANNEL_LAST - 1, 41002500); + RADIO_InitInfo(g_rx_vfo, FREQ_CHANNEL_LAST - 1, g_air_copy_freq); g_rx_vfo->channel_bandwidth = BANDWIDTH_WIDE; g_rx_vfo->output_power = OUTPUT_POWER_LOW;