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

increased bit-toggle pre-amble length at start of mdc packet + chan-2-vfo fix

This commit is contained in:
OneOfEleven 2023-10-28 17:16:39 +01:00
parent 9eb3f765e0
commit 0e61189c32
5 changed files with 13 additions and 4 deletions

View File

@ -2124,9 +2124,14 @@ void APP_time_slice_500ms(void)
#ifdef ENABLE_MDC1200
if (mdc1200_rx_ready_tick_500ms > 0)
{
if (--mdc1200_rx_ready_tick_500ms == 0)
{
if (g_center_line == CENTER_LINE_MDC1200)
g_center_line = CENTER_LINE_NONE;
g_update_display = true;
}
}
#endif
if (g_dtmf_rx_live_timeout > 0)

View File

@ -135,7 +135,11 @@ void toggle_chan_scanlist(void)
// find the first channel that contains this frequency
g_tx_vfo->freq_in_channel = BOARD_find_channel(g_tx_vfo->freq_config_tx.frequency);
g_request_save_vfo = true;
SETTINGS_save_channel(g_tx_vfo->channel_save, g_eeprom.tx_vfo, g_tx_vfo, 1);
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
UART_printf("chan-vfo %u\r\n", g_tx_vfo->channel_save);
#endif
g_beep_to_play = BEEP_880HZ_60MS_TRIPLE_BEEP;
//g_beep_to_play = BEEP_1KHZ_60MS_OPTIONAL;
@ -150,7 +154,7 @@ void toggle_chan_scanlist(void)
// search the channels to see if the frequency is already present
unsigned int chan = BOARD_find_channel(g_eeprom.vfo_info[vfo].p_tx->frequency);
if (chan > USER_CHANNEL_LAST)
{ // find next next free channel
{ // not found - find next free channel to save too
//for (chan = g_eeprom.screen_channel[vfo]; chan <= USER_CHANNEL_LAST; chan++)
for (chan = 0; chan <= USER_CHANNEL_LAST; chan++)
if (!RADIO_CheckValidChannel(chan, false, vfo))
@ -848,7 +852,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
RADIO_ApplyOffset(g_tx_vfo, true);
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
// UART_printf("save chan\r\n");
UART_printf("save chan %u\r\n", g_tx_vfo->channel_save);
#endif
}
}

View File

@ -2401,7 +2401,7 @@ void BK4819_reset_fsk(void)
(0u << 10) | // 0/1 1 = invert data when RX
(0u << 9) | // 0/1 1 = invert data when TX
(0u << 8) | // 0/1 ???
(1u << 4) | // 0 ~ 15 preamble length
(4u << 4) | // 0 ~ 15 preamble length
(1u << 3) | // 0/1 sync length
(0u << 0); // 0 ~ 7 ???

Binary file not shown.

Binary file not shown.