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:
parent
fa49548cea
commit
604d42c766
27
app/app.c
27
app/app.c
@ -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,15 +111,24 @@ static void APP_CheckForIncoming(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (gCurrentFunction != FUNCTION_INCOMING)
|
||||
{
|
||||
FUNCTION_Select(FUNCTION_INCOMING);
|
||||
gUpdateDisplay = true;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// dual watch is enabled and we're RX'ing a signal
|
||||
|
||||
if (gRxReceptionMode != RX_MODE_NONE)
|
||||
{
|
||||
if (gCurrentFunction != FUNCTION_INCOMING)
|
||||
{
|
||||
FUNCTION_Select(FUNCTION_INCOMING);
|
||||
gUpdateDisplay = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -134,8 +142,12 @@ static void APP_CheckForIncoming(void)
|
||||
else
|
||||
{
|
||||
if (gRxReceptionMode != RX_MODE_NONE)
|
||||
{
|
||||
if (gCurrentFunction != FUNCTION_INCOMING)
|
||||
{
|
||||
FUNCTION_Select(FUNCTION_INCOMING);
|
||||
gUpdateDisplay = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -145,7 +157,11 @@ static void APP_CheckForIncoming(void)
|
||||
|
||||
gRxReceptionMode = RX_MODE_DETECTED;
|
||||
|
||||
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user