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

Quicker screen update with varying RX signal

This commit is contained in:
OneOfEleven 2023-09-29 09:13:40 +01:00
parent fa49548cea
commit 604d42c766
3 changed files with 31 additions and 8 deletions

View File

@ -78,7 +78,6 @@ static void updateRSSI(const int vfo)
return; // no change
gCurrentRSSI[vfo] = rssi;
// gCurrentRSSI[vfo] = (gCurrentRSSI[vfo] + rssi) / 2;
UI_UpdateRSSI(rssi, vfo);
}
@ -86,7 +85,7 @@ static void updateRSSI(const int vfo)
static void APP_CheckForIncoming(void)
{
if (!g_SquelchLost)
return;
return; // squelch is closed
// squelch is open
@ -112,7 +111,12 @@ static void APP_CheckForIncoming(void)
}
#endif
FUNCTION_Select(FUNCTION_INCOMING);
if (gCurrentFunction != FUNCTION_INCOMING)
{
FUNCTION_Select(FUNCTION_INCOMING);
gUpdateDisplay = true;
}
return;
}
@ -120,7 +124,11 @@ static void APP_CheckForIncoming(void)
if (gRxReceptionMode != RX_MODE_NONE)
{
FUNCTION_Select(FUNCTION_INCOMING);
if (gCurrentFunction != FUNCTION_INCOMING)
{
FUNCTION_Select(FUNCTION_INCOMING);
gUpdateDisplay = true;
}
return;
}
@ -135,7 +143,11 @@ static void APP_CheckForIncoming(void)
{
if (gRxReceptionMode != RX_MODE_NONE)
{
FUNCTION_Select(FUNCTION_INCOMING);
if (gCurrentFunction != FUNCTION_INCOMING)
{
FUNCTION_Select(FUNCTION_INCOMING);
gUpdateDisplay = true;
}
return;
}
@ -145,7 +157,11 @@ static void APP_CheckForIncoming(void)
gRxReceptionMode = RX_MODE_DETECTED;
FUNCTION_Select(FUNCTION_INCOMING);
if (gCurrentFunction != FUNCTION_INCOMING)
{
FUNCTION_Select(FUNCTION_INCOMING);
gUpdateDisplay = true;
}
}
static void APP_HandleIncoming(void)
@ -154,8 +170,11 @@ static void APP_HandleIncoming(void)
if (!g_SquelchLost)
{ // squelch is closed
FUNCTION_Select(FUNCTION_FOREGROUND);
gUpdateDisplay = true;
if (gCurrentFunction != FUNCTION_FOREGROUND)
{
FUNCTION_Select(FUNCTION_FOREGROUND);
gUpdateDisplay = true;
}
return;
}
@ -202,6 +221,8 @@ static void APP_HandleIncoming(void)
gDualWatchActive = false;
gUpdateStatus = true;
gUpdateDisplay = true;
return;
}
}
@ -972,6 +993,7 @@ void APP_Update(void)
AUDIO_PlayBeep(BEEP_880HZ_60MS_TRIPLE_BEEP);
RADIO_SetVfoState(VFO_STATE_TIMEOUT);
GUI_DisplayScreen();
}
@ -1020,6 +1042,7 @@ void APP_Update(void)
#endif
{
MENU_SelectNextCode();
gScheduleScanListen = false;
}

Binary file not shown.

Binary file not shown.