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

Menu play + reduce AM AGC hysteresis very slightly.

This commit is contained in:
OneOfEleven 2023-10-01 15:07:34 +01:00
parent fc1bc8791c
commit c3c344daec
4 changed files with 7 additions and 5 deletions

View File

@ -438,7 +438,7 @@ const uint8_t orig_pga = 6; // -3dB
}
}
if (diff_dB >= -4) // 4dB hysterisis (help reduce gain hunting)
if (diff_dB >= -3) // 3dB hysterisis (help reduce gain hunting)
hold_counter[vfo] = 30; // 300ms hold
if (hold_counter[vfo] == 0)

Binary file not shown.

Binary file not shown.

View File

@ -352,6 +352,7 @@ void UI_DisplayMenu(void)
// draw the left menu list
#if 0
for (i = 0; i < 3; i++)
if (gMenuCursor > 0 || i > 0)
if ((gMenuListCount - 1) != gMenuCursor || i != 2)
@ -363,6 +364,11 @@ void UI_DisplayMenu(void)
gFrameBuffer[2][i] ^= 0xFF;
gFrameBuffer[3][i] ^= 0xFF;
}
// draw vertical separating dotted line
for (i = 0; i < 7; i++)
gFrameBuffer[i][(8 * menu_list_width) + 1] = 0xAA;
#else
{
const int menu_index = gMenuCursor; // current selected menu item
@ -395,10 +401,6 @@ void UI_DisplayMenu(void)
}
#endif
// draw vertical separating dotted line
for (i = 0; i < 7; i++)
gFrameBuffer[i][(8 * menu_list_width) + 1] = 0xAA;
// draw the menu index number/count
sprintf(String, "%2u.%u", 1 + gMenuCursor, gMenuListCount);
UI_PrintStringSmall(String, 8, 0, 6);