fix power bug
All checks were successful
Build Firmware / build (push) Successful in 37s

This commit is contained in:
2025-03-31 11:51:11 +02:00
parent 85fb527020
commit 101bde7463
11 changed files with 118 additions and 55 deletions

View File

@@ -89,6 +89,7 @@ const char *VfoStateStr[] = {
// ***************************************************************************
static void DrawSmallAntennaAndBars(uint8_t *p, unsigned int level) {
level++;
if (level > 6)
level = 6;
@@ -925,7 +926,7 @@ void UI_DisplayMain(void) {
Level = 2;
}
*/
Level = gRxVfo->OUTPUT_POWER - 1;
Level = gRxVfo->OUTPUT_POWER;
} else if (mode == VFO_MODE_RX) { // RX signal level
#ifndef ENABLE_RSSI_BAR
// bar graph
@@ -1012,7 +1013,7 @@ void UI_DisplayMain(void) {
if (state == VFO_STATE_NORMAL || state == VFO_STATE_ALARM) { // show the TX power
const char pwr_short[][3] = {"L1", "L2", "L3", "L4", "L5", "ME",
"HI", "UN"};
"HI"};
UI_PrintStringSmallNormal(pwr_short[vfoInfo->OUTPUT_POWER], LCD_WIDTH + 25, 0, line + 1);
}