mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 15:08:37 +03:00
Lots n lots
This commit is contained in:
36
ui/main.c
36
ui/main.c
@ -302,7 +302,7 @@ void UI_update_rssi(const int16_t rssi, const int vfo)
|
||||
#ifdef ENABLE_RX_SIGNAL_BAR
|
||||
if (g_center_line == CENTER_LINE_RSSI)
|
||||
{ // optional larger RSSI dBm, S-point and bar level
|
||||
if (g_current_function == FUNCTION_RECEIVE || g_current_function == FUNCTION_MONITOR)
|
||||
if (g_current_function == FUNCTION_RECEIVE)
|
||||
{
|
||||
UI_DisplayRSSIBar(rssi, true);
|
||||
}
|
||||
@ -355,9 +355,7 @@ void UI_update_rssi(const int16_t rssi, const int vfo)
|
||||
if (rssi >= level01)
|
||||
rssi_level = 2;
|
||||
else
|
||||
if (rssi >= level0 ||
|
||||
g_current_function == FUNCTION_MONITOR ||
|
||||
g_current_function == FUNCTION_NEW_RECEIVE)
|
||||
if (rssi >= level0 || g_current_function == FUNCTION_NEW_RECEIVE)
|
||||
{
|
||||
rssi_level = 1;
|
||||
}
|
||||
@ -422,7 +420,7 @@ void big_freq(const uint32_t frequency, const unsigned int x, const unsigned int
|
||||
|
||||
void UI_DisplayMain(void)
|
||||
{
|
||||
#ifndef ENABLE_BIG_FREQ
|
||||
#if !defined(ENABLE_BIG_FREQ) && defined(ENABLE_SMALLEST_FONT)
|
||||
const unsigned int smallest_char_spacing = ARRAY_SIZE(g_font3x5[0]) + 1;
|
||||
#endif
|
||||
const unsigned int line0 = 0; // text screen line
|
||||
@ -589,9 +587,7 @@ void UI_DisplayMain(void)
|
||||
else
|
||||
{ // receiving .. show the RX symbol
|
||||
mode = 2;
|
||||
if ((g_current_function == FUNCTION_RECEIVE ||
|
||||
g_current_function == FUNCTION_MONITOR ||
|
||||
g_current_function == FUNCTION_NEW_RECEIVE) &&
|
||||
if ((g_current_function == FUNCTION_RECEIVE || g_current_function == FUNCTION_NEW_RECEIVE) &&
|
||||
g_eeprom.rx_vfo == vfo_num)
|
||||
{
|
||||
#ifdef ENABLE_SMALL_BOLD
|
||||
@ -776,7 +772,7 @@ void UI_DisplayMain(void)
|
||||
|
||||
// no room for these symbols
|
||||
|
||||
#else
|
||||
#elif defined(ENABLE_SMALLEST_FONT)
|
||||
{
|
||||
unsigned int x = LCD_WIDTH + LCD_WIDTH - 1 - (smallest_char_spacing * 1) - (smallest_char_spacing * 4);
|
||||
|
||||
@ -795,6 +791,24 @@ void UI_DisplayMain(void)
|
||||
UI_PrintStringSmallest("C", x, (line + 0) * 8, false, true);
|
||||
//x += smallest_char_spacing * 1;
|
||||
}
|
||||
#else
|
||||
{
|
||||
strcpy(str, " ");
|
||||
|
||||
if (IS_FREQ_CHANNEL(g_eeprom.screen_channel[vfo_num]))
|
||||
{
|
||||
//g_eeprom.vfo_info[vfo_num].freq_in_channel = BOARD_find_channel(frequency);
|
||||
if (g_eeprom.vfo_info[vfo_num].freq_in_channel <= USER_CHANNEL_LAST)
|
||||
{ // the channel number that contains this VFO frequency
|
||||
str[0] = 'F';
|
||||
}
|
||||
}
|
||||
|
||||
if (g_eeprom.vfo_info[vfo_num].compand)
|
||||
str[1] = 'C';
|
||||
|
||||
UI_PrintStringSmall(str, LCD_WIDTH - 1 - (6 * 2), 0, line + 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -903,9 +917,7 @@ void UI_DisplayMain(void)
|
||||
g_dtmf_call_state == DTMF_CALL_STATE_NONE)
|
||||
{ // we're free to use the middle line
|
||||
|
||||
const bool rx = (g_current_function == FUNCTION_RECEIVE ||
|
||||
g_current_function == FUNCTION_MONITOR ||
|
||||
g_current_function == FUNCTION_NEW_RECEIVE);
|
||||
const bool rx = (g_current_function == FUNCTION_RECEIVE);
|
||||
|
||||
#ifdef ENABLE_TX_TIMEOUT_BAR
|
||||
// show the TX timeout count down
|
||||
|
Reference in New Issue
Block a user