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

Binary file not shown.

Binary file not shown.