mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
Fix something with AM not-fixed
This commit is contained in:
parent
ad33875b7a
commit
4a46723203
12
app/app.c
12
app/app.c
@ -1134,11 +1134,11 @@ void APP_Update(void)
|
|||||||
{ // dual watch mode, go back to sleep
|
{ // dual watch mode, go back to sleep
|
||||||
|
|
||||||
// sample the RSSI
|
// sample the RSSI
|
||||||
|
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
|
||||||
#ifdef ENABLE_AM_FIX
|
#ifdef ENABLE_AM_FIX
|
||||||
// with compensation
|
// with compensation
|
||||||
gCurrentRSSI = (int16_t)BK4819_GetRSSI() - (rssi_db_gain_diff * 2);
|
if (gSetting_AM_fix)
|
||||||
#else
|
gCurrentRSSI -= rssi_db_gain_diff * 2;
|
||||||
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UI_UpdateRSSI(gCurrentRSSI);
|
UI_UpdateRSSI(gCurrentRSSI);
|
||||||
@ -1660,11 +1660,11 @@ void APP_TimeSlice500ms(void)
|
|||||||
|
|
||||||
if (gCurrentFunction != FUNCTION_POWER_SAVE)
|
if (gCurrentFunction != FUNCTION_POWER_SAVE)
|
||||||
{
|
{
|
||||||
|
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
|
||||||
#ifdef ENABLE_AM_FIX
|
#ifdef ENABLE_AM_FIX
|
||||||
// with compensation
|
// with compensation
|
||||||
gCurrentRSSI = (int16_t)BK4819_GetRSSI() - (rssi_db_gain_diff * 2);
|
if (gSetting_AM_fix)
|
||||||
#else
|
gCurrentRSSI -= rssi_db_gain_diff * 2;
|
||||||
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UI_UpdateRSSI(gCurrentRSSI);
|
UI_UpdateRSSI(gCurrentRSSI);
|
||||||
|
@ -497,7 +497,7 @@ void UI_DisplayMain(void)
|
|||||||
{ // we're free to use the middle empty line for something
|
{ // we're free to use the middle empty line for something
|
||||||
|
|
||||||
#if defined(ENABLE_AM_FIX) && defined(ENABLE_AM_FIX_SHOW_DATA)
|
#if defined(ENABLE_AM_FIX) && defined(ENABLE_AM_FIX_SHOW_DATA)
|
||||||
if (gEeprom.VfoInfo[gEeprom.RX_CHANNEL].IsAM)
|
if (gSetting_AM_fix && gEeprom.VfoInfo[gEeprom.RX_CHANNEL].IsAM)
|
||||||
{
|
{
|
||||||
switch (gCurrentFunction)
|
switch (gCurrentFunction)
|
||||||
{
|
{
|
||||||
@ -514,7 +514,9 @@ void UI_DisplayMain(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
#ifdef ENABLE_AUDIO_BAR
|
#ifdef ENABLE_AUDIO_BAR
|
||||||
UI_DisplayAudioBar();
|
UI_DisplayAudioBar();
|
||||||
|
|
||||||
@ -536,7 +538,7 @@ void UI_DisplayMain(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ST7565_BlitFullScreen();
|
ST7565_BlitFullScreen();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user