0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Fix RSSI/AM-fix random data displayed switching/flicker

This commit is contained in:
OneOfEleven 2023-09-29 10:25:33 +01:00
parent 18409ddd01
commit 5fe5752753
5 changed files with 46 additions and 33 deletions

View File

@ -485,8 +485,8 @@ const uint8_t orig_pga = 6; // -3dB
if (s != NULL)
{
const unsigned int index = gain_table_index[vfo];
sprintf(s, "idx %2d %4ddB %3u", index, gain_dB[index], prev_rssi[vfo]);
//counter = 1;
sprintf(s, "%2u.%u %4ddB %3u", index, ARRAY_SIZE(gain_table) - 1, gain_dB[index], prev_rssi[vfo]);
counter = 0;
}
}

Binary file not shown.

Binary file not shown.

View File

@ -180,6 +180,12 @@ void UI_UpdateRSSI(const int16_t rssi, const int vfo)
gCurrentFunction == FUNCTION_MONITOR ||
gCurrentFunction == FUNCTION_INCOMING);
#if defined(ENABLE_AM_FIX) && defined(ENABLE_AM_FIX_SHOW_DATA)
if (gEeprom.VfoInfo[gEeprom.RX_CHANNEL].AM_mode && gSetting_AM_fix)
{
}
else
#endif
if (rx)
UI_DisplayRSSIBar(rssi, true);

View File

@ -1,9 +1,16 @@
//#define ONE_OF_ELEVEN_VER
#ifdef GIT_HASH
#define VER GIT_HASH
#else
#define VER "230930"
#define VER "230929"
#endif
const char Version[] = "OEFW-"VER;
const char UART_Version[] = "UV-K5 Firmware, Open Edition, OEFW-"VER"\r\n";
#ifndef ONE_OF_ELEVEN_VER
const char Version[] = "OEFW-"VER;
const char UART_Version[] = "UV-K5 Firmware, Open Edition, OEFW-"VER"\r\n";
#else
const char Version[] = "1o11-"VER;
const char UART_Version[] = "UV-K5 Firmware, Open Edition, 1o11-"VER"\r\n";
#endif