mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
Fix TX power setting (I broke it previous commit)
This commit is contained in:
@ -50,7 +50,7 @@ center_line_t center_line = CENTER_LINE_NONE;
|
||||
{
|
||||
unsigned int timeout_secs = 0;
|
||||
|
||||
if (g_current_function != FUNCTION_TRANSMIT)
|
||||
if (g_current_function != FUNCTION_TRANSMIT || g_screen_to_display != DISPLAY_MAIN)
|
||||
return false;
|
||||
|
||||
if (center_line != CENTER_LINE_NONE && center_line != CENTER_LINE_TX_TIMEOUT)
|
||||
|
@ -871,9 +871,10 @@ void UI_DisplayMenu(void)
|
||||
break;
|
||||
|
||||
case MENU_VOL:
|
||||
sprintf(String, "%u.%02uV\n%u%%",
|
||||
sprintf(String, "%u.%02uV\n%u%%\ncurr %u",
|
||||
g_battery_voltage_average / 100, g_battery_voltage_average % 100,
|
||||
BATTERY_VoltsToPercent(g_battery_voltage_average));
|
||||
BATTERY_VoltsToPercent(g_battery_voltage_average),
|
||||
g_battery_current);
|
||||
break;
|
||||
|
||||
case MENU_SIDE1_SHORT:
|
||||
|
Reference in New Issue
Block a user