0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 22:29:50 +03:00

added ENABLE_FM_DEV_CAL_MENU option to enable FM deviation calibration

This commit is contained in:
OneOfEleven
2023-11-29 20:07:55 +00:00
parent 277b7fb4a4
commit c21f4a7987
12 changed files with 186 additions and 37 deletions

View File

@ -404,10 +404,10 @@ void BK4819_EnableVox(uint16_t VoxEnableThreshold, uint16_t VoxDisableThreshold)
BK4819_write_reg(0x31, BK4819_read_reg(0x31) | (1u << 2));
}
void BK4819_set_TX_deviation(const bool narrow)
void BK4819_set_TX_deviation(uint16_t deviation)
{
// const uint8_t scrambler = (BK4819_read_reg(0x31) >> 1) & 1u;
uint16_t deviation = narrow ? 900 : 1232;
// uint16_t deviation = narrow ? 900 : 1232;
// if (scrambler)
// deviation -= 200;
if (deviation > 4095)

View File

@ -79,7 +79,7 @@ void BK4819_set_CTCSS_freq(const uint32_t control_word);
void BK4819_set_tail_detection(const uint32_t freq_10Hz);
void BK4819_EnableVox(uint16_t Vox1Threshold, uint16_t Vox0Threshold);
void BK4819_set_TX_deviation(const bool narrow);
void BK4819_set_TX_deviation(uint16_t deviation);
void BK4819_SetFilterBandwidth(const BK4819_filter_bandwidth_t Bandwidth);