mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
Add DO7OO's update - hide LMH when TX not allowed
This commit is contained in:
parent
eec77fb93c
commit
28f78cfcb6
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -836,7 +836,13 @@ void UI_DisplayMain(void)
|
||||
}
|
||||
UI_PrintStringSmall(str, LCD_WIDTH + 24, 0, line + 1);
|
||||
|
||||
#ifdef ENABLE_TX_WHEN_AM
|
||||
if (state == VFO_STATE_NORMAL || state == VFO_STATE_ALARM)
|
||||
#else
|
||||
if ((state == VFO_STATE_NORMAL || state == VFO_STATE_ALARM) && !g_current_vfo->am_mode) // not allowed to TX if in AM mode
|
||||
#endif
|
||||
{
|
||||
if (FREQUENCY_tx_freq_check(g_current_vfo->p_tx->frequency) == 0)
|
||||
{ // show the TX power
|
||||
const char pwr_list[] = "LMH";
|
||||
const unsigned int i = g_eeprom.vfo_info[vfo_num].output_power;
|
||||
@ -853,6 +859,7 @@ void UI_DisplayMain(void)
|
||||
str[1] = '\0';
|
||||
UI_PrintStringSmall(str, LCD_WIDTH + 54, 0, line + 1);
|
||||
}
|
||||
}
|
||||
|
||||
// show the TX/RX reverse symbol
|
||||
if (g_eeprom.vfo_info[vfo_num].frequency_reverse)
|
||||
|
Loading…
x
Reference in New Issue
Block a user