0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

fix up/dn frequency tx offset bug

This commit is contained in:
OneOfEleven
2023-10-27 14:34:52 +01:00
parent ab0c37290f
commit 2a7dbc1e73
13 changed files with 65 additions and 168 deletions

View File

@ -63,10 +63,12 @@ enum {
DUAL_WATCH_CHAN_B
};
#define MAX_TX_OFFSET 100000000
enum {
TX_OFFSET_FREQ_DIR_OFF = 0,
TX_OFFSET_FREQ_DIR_ADD,
TX_OFFSET_FREQ_DIR_SUB
TX_OFFSET_FREQ_DIR_SUB,
TX_OFFSET_FREQ_DIR_LAST
};
enum {
@ -137,7 +139,7 @@ typedef struct {
// [0]
uint32_t frequency; //
// [4]
uint32_t offset; //
uint32_t tx_offset; //
// [8]
uint8_t rx_ctcss_cdcss_code; //
// [9]
@ -325,7 +327,7 @@ typedef struct {
uint8_t noaa_channel_b; //
uint8_t fm_selected_frequency; //
uint8_t fm_selected_channel; //
uint8_t fm_is_channel_mode; //
uint8_t fm_channel_mode; //
uint8_t unused5[5]; // 0xff's
// 0x0E90
@ -481,7 +483,7 @@ typedef struct {
#ifdef ENABLE_FMRADIO
uint16_t fm_selected_frequency;
uint8_t fm_selected_channel;
bool fm_is_channel_mode;
bool fm_channel_mode;
uint16_t fm_frequency_playing;
#endif