0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 06:11:24 +03:00
This commit is contained in:
OneOfEleven 2023-11-24 11:20:42 +00:00
parent e3f10d5409
commit fd680325ef
4 changed files with 21 additions and 1 deletions

View File

@ -53,7 +53,7 @@ ENABLE_F_CAL_MENU := 0
ENABLE_TX_UNLOCK_MENU := 0
#ENABLE_TX_POWER_CAL_MENU := 0
ENABLE_TX_POWER_FIX := 1
ENABLE_TX_POWER_LOW_USER := 1
ENABLE_TX_POWER_LOW_USER := 0
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1
ENABLE_CONTRAST := 0
ENABLE_BOOT_BEEPS := 0

Binary file not shown.

Binary file not shown.

View File

@ -114,6 +114,26 @@ void SETTINGS_read_eeprom(void)
sizeof(g_eeprom), sizeof(g_eeprom));
#endif
#if 1
// channel sanity checks ..
for (index = 0; index < ARRAY_SIZE(g_eeprom.config.channel); index++)
{
// if (g_eeprom.config.channel_attributes[index].band <= BAND7_470MHz)
{ // used channel
if (g_eeprom.config.channel[index].mod_mode == 3)
g_eeprom.config.channel[index].mod_mode = 0;
#ifdef ENABLE_TX_POWER_LOW_USER
if (g_eeprom.config.channel[index].tx_power_user == 0)
g_eeprom.config.channel[index].tx_power_user = 9;
#endif
}
}
#endif
#if 0
// sanity checks ..