mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
Fix RSSI/AM-fix random data displayed switching/flicker
This commit is contained in:
parent
18409ddd01
commit
5fe5752753
4
am_fix.c
4
am_fix.c
@ -485,8 +485,8 @@ const uint8_t orig_pga = 6; // -3dB
|
|||||||
if (s != NULL)
|
if (s != NULL)
|
||||||
{
|
{
|
||||||
const unsigned int index = gain_table_index[vfo];
|
const unsigned int index = gain_table_index[vfo];
|
||||||
sprintf(s, "idx %2d %4ddB %3u", index, gain_dB[index], prev_rssi[vfo]);
|
sprintf(s, "%2u.%u %4ddB %3u", index, ARRAY_SIZE(gain_table) - 1, gain_dB[index], prev_rssi[vfo]);
|
||||||
//counter = 1;
|
counter = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -180,6 +180,12 @@ void UI_UpdateRSSI(const int16_t rssi, const int vfo)
|
|||||||
gCurrentFunction == FUNCTION_MONITOR ||
|
gCurrentFunction == FUNCTION_MONITOR ||
|
||||||
gCurrentFunction == FUNCTION_INCOMING);
|
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)
|
if (rx)
|
||||||
UI_DisplayRSSIBar(rssi, true);
|
UI_DisplayRSSIBar(rssi, true);
|
||||||
|
|
||||||
|
13
version.c
13
version.c
@ -1,9 +1,16 @@
|
|||||||
|
|
||||||
|
//#define ONE_OF_ELEVEN_VER
|
||||||
|
|
||||||
#ifdef GIT_HASH
|
#ifdef GIT_HASH
|
||||||
#define VER GIT_HASH
|
#define VER GIT_HASH
|
||||||
#else
|
#else
|
||||||
#define VER "230930"
|
#define VER "230929"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char Version[] = "OEFW-"VER;
|
#ifndef ONE_OF_ELEVEN_VER
|
||||||
const char UART_Version[] = "UV-K5 Firmware, Open Edition, OEFW-"VER"\r\n";
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user