0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-05-18 16:01:18 +03:00

Test disable 300Hz TX HPF when CTCSS/CDCSS is disabled

This commit is contained in:
OneOfEleven 2023-12-04 18:00:08 +00:00
parent 0f49cf881e
commit 03a70f8967
4 changed files with 10 additions and 1 deletions

View File

@ -1201,6 +1201,9 @@ void APP_end_tx(void)
#endif
}
// re-enable 300Hz TX HPF
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2));
RADIO_setup_registers(false);
if (g_monitor_enabled)

Binary file not shown.

Binary file not shown.

View File

@ -295,6 +295,12 @@ void FUNCTION_Select(function_type_t Function)
if (g_eeprom.config.setting.enable_scrambler)
BK4819_set_scrambler(g_current_vfo->channel.scrambler);
// 1of11 .. TEST ONLY
if (g_current_vfo->p_tx->code_type == CODE_TYPE_NONE)
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) | (1u << 2)); // disable the 300Hz TX HPF
else
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2)); // enable the 300Hz TX HPF
break;
}