mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 22:58:04 +03:00
fix missing display update
This commit is contained in:
26
app/app.c
26
app/app.c
@ -1866,6 +1866,19 @@ void APP_time_slice_500ms(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (g_update_screen_tick_500ms > 0)
|
||||
{ // update display once every 500ms
|
||||
if (--g_update_screen_tick_500ms == 0)
|
||||
{
|
||||
RADIO_set_vfo_state(VFO_STATE_NORMAL);
|
||||
|
||||
g_update_status = true;
|
||||
g_update_display = true;
|
||||
}
|
||||
//g_update_status = true;
|
||||
//g_update_display = true;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_MDC1200
|
||||
if (mdc1200_rx_ready_tick_500ms > 0)
|
||||
{
|
||||
@ -1896,6 +1909,12 @@ void APP_time_slice_500ms(void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_TX_TIMEOUT_BAR
|
||||
if (g_current_function == FUNCTION_TRANSMIT && g_tx_timer_tick_500ms & 1u))
|
||||
g_update_display = true;
|
||||
// UI_DisplayTXCountdown(true);
|
||||
#endif
|
||||
|
||||
if (g_menu_tick_10ms > 0)
|
||||
if (--g_menu_tick_10ms == 0)
|
||||
exit_menu = (g_current_display_screen == DISPLAY_MENU); // exit menu mode
|
||||
@ -2117,8 +2136,6 @@ void APP_time_slice_500ms(void)
|
||||
{
|
||||
if (--g_fm_resume_tick_500ms == 0)
|
||||
{
|
||||
RADIO_set_vfo_state(VFO_STATE_NORMAL);
|
||||
|
||||
if (g_current_function != FUNCTION_RECEIVE && g_fm_radio_mode)
|
||||
{ // switch back to FM radio mode
|
||||
if (g_current_display_screen != DISPLAY_FM)
|
||||
@ -2188,11 +2205,6 @@ void APP_time_slice_500ms(void)
|
||||
g_update_display = true;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_TX_TIMEOUT_BAR
|
||||
if (g_current_function == FUNCTION_TRANSMIT && (g_tx_timer_tick_500ms & 1u))
|
||||
UI_DisplayTXCountdown(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
void APP_time_slice_10ms(void)
|
||||
|
Reference in New Issue
Block a user