0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00
This commit is contained in:
OneOfEleven
2023-09-24 09:00:34 +01:00
parent 81446c2f70
commit d3aff9d013
6 changed files with 69 additions and 31 deletions

View File

@ -1134,14 +1134,14 @@ void APP_Update(void)
{ // dual watch mode, go back to sleep
// sample the RSSI
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
gCurrentRSSI[gEeprom.RX_CHANNEL] = (int16_t)BK4819_GetRSSI();
#ifdef ENABLE_AM_FIX
// with compensation
if (gSetting_AM_fix)
gCurrentRSSI -= rssi_db_gain_diff * 2;
gCurrentRSSI[gEeprom.RX_CHANNEL] -= rssi_db_gain_diff * 2;
#endif
UI_UpdateRSSI(gCurrentRSSI);
UI_UpdateRSSI(gCurrentRSSI[gEeprom.RX_CHANNEL]);
// go back to sleep
@ -1660,14 +1660,14 @@ void APP_TimeSlice500ms(void)
if (gCurrentFunction != FUNCTION_POWER_SAVE)
{
gCurrentRSSI = (int16_t)BK4819_GetRSSI();
gCurrentRSSI[gEeprom.RX_CHANNEL] = (int16_t)BK4819_GetRSSI();
#ifdef ENABLE_AM_FIX
// with compensation
if (gSetting_AM_fix)
gCurrentRSSI -= rssi_db_gain_diff * 2;
gCurrentRSSI[gEeprom.RX_CHANNEL] -= rssi_db_gain_diff * 2;
#endif
UI_UpdateRSSI(gCurrentRSSI);
UI_UpdateRSSI(gCurrentRSSI[gEeprom.RX_CHANNEL]);
}
#ifdef ENABLE_FMRADIO