mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
stuff
This commit is contained in:
parent
5119995b08
commit
9bb9af1efe
@ -160,7 +160,7 @@ void AIRCOPY_start_fsk_tx(const int request_block_num)
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
BK4819_WriteRegister(0x2B, (1u << 2) | (1u << 0)); // try to improve the TX waveform
|
||||
// BK4819_WriteRegister(0x2B, (1u << 2) | (1u << 0)); // try to improve the TX waveform
|
||||
|
||||
// REG_59
|
||||
//
|
||||
|
@ -586,34 +586,6 @@ void BK4819_set_TX_deviation(unsigned int level)
|
||||
|
||||
void BK4819_SetFilterBandwidth(const BK4819_filter_bandwidth_t Bandwidth, const bool weak_no_different)
|
||||
{
|
||||
// REG_2B 0
|
||||
//
|
||||
// <10> 0 AF RX HPF 300Hz filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// <9> 0 AF RX LPF 3kHz filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// <8> 0 AF RX de-emphasis filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// <2> 0 AF TX HPF 300Hz filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// <1> 0 AF TX LPF filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// <0> 0 AF TX pre-emphasis filter
|
||||
// 0 = enable
|
||||
// 1 = disable
|
||||
//
|
||||
// BK4819_WriteRegister(0x2B, 0);
|
||||
|
||||
// REG_43
|
||||
// <15> 0 ???
|
||||
//
|
||||
@ -1839,8 +1811,8 @@ uint8_t BK4819_GetCTCType(void)
|
||||
( 0u << 15) |
|
||||
( 0u << 8) |
|
||||
( 1u << 7) |
|
||||
(96u << 0));
|
||||
// (127u << 0)); // best waveform
|
||||
// (96u << 0));
|
||||
(127u << 0)); // best waveform
|
||||
|
||||
// REG_72
|
||||
//
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
22
ui/aircopy.c
22
ui/aircopy.c
@ -57,9 +57,27 @@ void UI_DisplayAircopy(void)
|
||||
|
||||
if (g_input_box_index == 0)
|
||||
{ // show frequency
|
||||
|
||||
const unsigned int x = 16;
|
||||
|
||||
NUMBER_ToDigits(g_rx_vfo->freq_config_rx.frequency, str);
|
||||
UI_DisplayFrequency(str, 16, 2, 0, 0);
|
||||
UI_Displaysmall_digits(2, str + 6, 97, 3, true);
|
||||
UI_DisplayFrequency(str, x, 2, 0, 0);
|
||||
|
||||
// show the remaining 2 small frequency digits
|
||||
#ifdef ENABLE_TRIM_TRAILING_ZEROS
|
||||
{
|
||||
unsigned int small_num = 2;
|
||||
if (str[7] == 0)
|
||||
{
|
||||
small_num--;
|
||||
if (str[6] == 0)
|
||||
small_num--;
|
||||
}
|
||||
UI_Displaysmall_digits(small_num, str + 6, x + 81, 3, true);
|
||||
}
|
||||
#else
|
||||
UI_Displaysmall_digits(2, str + 6, x + 81, 3, true);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{ // user is entering a new frequency
|
||||
|
Loading…
x
Reference in New Issue
Block a user