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

Maintain monitor update

This commit is contained in:
OneOfEleven 2023-09-26 14:25:14 +01:00
parent 14f154b927
commit cb92f2e098
6 changed files with 10 additions and 6 deletions

View File

@ -329,7 +329,7 @@ const uint8_t orig_pga = 6; // -3dB
void AM_fix_init(void) void AM_fix_init(void)
{ // called at boot-up { // called at boot-up
/* unsigned int i; unsigned int i;
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
{ {
#ifdef ENABLE_AM_FIX_TEST1 #ifdef ENABLE_AM_FIX_TEST1
@ -338,7 +338,7 @@ const uint8_t orig_pga = 6; // -3dB
am_fix_gain_table_index[i] = original_index; // re-start with original QS setting am_fix_gain_table_index[i] = original_index; // re-start with original QS setting
#endif #endif
} }
*/
orig_dB_gain = lna_short_dB[orig_lna_short] + lna_dB[orig_lna] + mixer_dB[orig_mixer] + pga_dB[orig_pga]; orig_dB_gain = lna_short_dB[orig_lna_short] + lna_dB[orig_lna] + mixer_dB[orig_mixer] + pga_dB[orig_pga];
#if 0 #if 0
@ -374,9 +374,9 @@ const uint8_t orig_pga = 6; // -3dB
rssi_db_gain_diff[vfo] = 0; rssi_db_gain_diff[vfo] = 0;
#ifdef ENABLE_AM_FIX_TEST1 #ifdef ENABLE_AM_FIX_TEST1
am_fix_gain_table_index[vfo] = 1 + gSetting_AM_fix_test1; // am_fix_gain_table_index[vfo] = 1 + gSetting_AM_fix_test1;
#else #else
am_fix_gain_table_index[vfo] = original_index; // re-start with original QS setting // am_fix_gain_table_index[vfo] = original_index; // re-start with original QS setting
#endif #endif
am_fix_gain_table_index_prev[vfo] = 0; am_fix_gain_table_index_prev[vfo] = 0;

View File

@ -861,6 +861,9 @@ void APP_EndTransmission(void)
} }
RADIO_SetupRegisters(false); RADIO_SetupRegisters(false);
if (gMonitor)
ACTION_Monitor(); // 1of11
} }
static void APP_HandleVox(void) static void APP_HandleVox(void)
@ -2103,7 +2106,6 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
} }
if (gF_LOCK && (Key == KEY_PTT || Key == KEY_SIDE2 || Key == KEY_SIDE1)) if (gF_LOCK && (Key == KEY_PTT || Key == KEY_SIDE2 || Key == KEY_SIDE1))
// if (gF_LOCK && Key == KEY_PTT)
return; return;
if (!bFlag) if (!bFlag)

View File

@ -119,7 +119,9 @@ void GENERIC_Key_PTT(bool bKeyPressed)
APP_EndTransmission(); APP_EndTransmission();
if (gEeprom.REPEATER_TAIL_TONE_ELIMINATION == 0) if (gEeprom.REPEATER_TAIL_TONE_ELIMINATION == 0)
{
FUNCTION_Select(FUNCTION_FOREGROUND); FUNCTION_Select(FUNCTION_FOREGROUND);
}
else else
gRTTECountdown = gEeprom.REPEATER_TAIL_TONE_ELIMINATION * 10; gRTTECountdown = gEeprom.REPEATER_TAIL_TONE_ELIMINATION * 10;
} }

Binary file not shown.

Binary file not shown.

View File

@ -130,7 +130,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
case FUNCTION_INCOMING: case FUNCTION_INCOMING:
case FUNCTION_RECEIVE: case FUNCTION_RECEIVE:
gMonitor = false; // gMonitor = false;
break; break;
case FUNCTION_POWER_SAVE: case FUNCTION_POWER_SAVE: