mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-29 23:01:26 +03:00
fix missing display update
This commit is contained in:
parent
0a9765b2bd
commit
2522b4184a
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
|
#ifdef ENABLE_MDC1200
|
||||||
if (mdc1200_rx_ready_tick_500ms > 0)
|
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)
|
||||||
if (--g_menu_tick_10ms == 0)
|
if (--g_menu_tick_10ms == 0)
|
||||||
exit_menu = (g_current_display_screen == DISPLAY_MENU); // exit menu mode
|
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)
|
if (--g_fm_resume_tick_500ms == 0)
|
||||||
{
|
{
|
||||||
RADIO_set_vfo_state(VFO_STATE_NORMAL);
|
|
||||||
|
|
||||||
if (g_current_function != FUNCTION_RECEIVE && g_fm_radio_mode)
|
if (g_current_function != FUNCTION_RECEIVE && g_fm_radio_mode)
|
||||||
{ // switch back to FM radio mode
|
{ // switch back to FM radio mode
|
||||||
if (g_current_display_screen != DISPLAY_FM)
|
if (g_current_display_screen != DISPLAY_FM)
|
||||||
@ -2188,11 +2205,6 @@ void APP_time_slice_500ms(void)
|
|||||||
g_update_display = true;
|
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)
|
void APP_time_slice_10ms(void)
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
2
misc.c
2
misc.c
@ -157,6 +157,8 @@ volatile uint16_t g_tail_tone_elimination_tick_10ms;
|
|||||||
volatile uint16_t g_noaa_tick_10ms;
|
volatile uint16_t g_noaa_tick_10ms;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
uint8_t g_update_screen_tick_500ms;
|
||||||
|
|
||||||
uint8_t g_key_input_count_down;
|
uint8_t g_key_input_count_down;
|
||||||
#ifdef ENABLE_KEYLOCK
|
#ifdef ENABLE_KEYLOCK
|
||||||
uint8_t g_key_lock_tick_500ms;
|
uint8_t g_key_lock_tick_500ms;
|
||||||
|
2
misc.h
2
misc.h
@ -250,6 +250,8 @@ extern volatile uint16_t g_tail_tone_elimination_tick_10ms;
|
|||||||
extern volatile uint16_t g_noaa_tick_10ms;
|
extern volatile uint16_t g_noaa_tick_10ms;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern uint8_t g_update_screen_tick_500ms;
|
||||||
|
|
||||||
extern uint8_t g_key_input_count_down;
|
extern uint8_t g_key_input_count_down;
|
||||||
|
|
||||||
#ifdef ENABLE_KEYLOCK
|
#ifdef ENABLE_KEYLOCK
|
||||||
|
6
radio.c
6
radio.c
@ -977,10 +977,8 @@ void RADIO_set_vfo_state(vfo_state_t State)
|
|||||||
g_vfo_state[vfo] = State;
|
g_vfo_state[vfo] = State;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_FMRADIO
|
// cause a display update to remove the message
|
||||||
if (g_fm_radio_mode && g_fm_resume_tick_500ms < fm_resume_500ms)
|
g_update_screen_tick_500ms = 8; // 4 seconds
|
||||||
g_fm_resume_tick_500ms = fm_resume_500ms;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_update_display = true;
|
g_update_display = true;
|
||||||
|
@ -141,8 +141,9 @@ void UI_DisplayFM(void)
|
|||||||
|
|
||||||
// *************************************
|
// *************************************
|
||||||
|
|
||||||
// can't do this during FM radio - audio clicks else
|
if (!g_ask_to_delete &&
|
||||||
if (g_fm_scan_state_dir != FM_SCAN_STATE_DIR_OFF || g_fm_resume_tick_500ms > 0)
|
!g_ask_to_save &&
|
||||||
|
(g_fm_scan_state_dir != FM_SCAN_STATE_DIR_OFF || g_fm_resume_tick_500ms > 0))
|
||||||
{
|
{
|
||||||
const uint16_t rssi_status = BK1080_ReadRegister(BK1080_REG_10);
|
const uint16_t rssi_status = BK1080_ReadRegister(BK1080_REG_10);
|
||||||
const uint16_t dev_snr = BK1080_ReadRegister(BK1080_REG_07);
|
const uint16_t dev_snr = BK1080_ReadRegister(BK1080_REG_07);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user