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

aircopy fix

This commit is contained in:
OneOfEleven 2023-10-19 20:54:28 +01:00
parent eb793f5839
commit a6dfca4c91
4 changed files with 8 additions and 9 deletions

View File

@ -529,27 +529,24 @@ void AIRCOPY_process_fsk_rx_10ms(void)
if (eeprom_addr == 0x0E98) if (eeprom_addr == 0x0E98)
{ // power-on password .. wipe it { // power-on password .. wipe it
//#ifndef ENABLE_PWRON_PASSWORD //#ifndef ENABLE_PWRON_PASSWORD
data[0] = 0xffff; memset(data, 0xff, 4);
data[1] = 0xffff;
//#endif //#endif
} }
else else
if (eeprom_addr == 0x0F30) if (eeprom_addr == 0x0F30 || eeprom_addr == 0x0F38)
{ // AES key .. wipe it { // AES key .. wipe it
//#ifdef ENABLE_RESET_AES_KEY //#ifdef ENABLE_RESET_AES_KEY
data[0] = 0xffff; memset(data, 0xff, 8);
data[1] = 0xffff;
data[2] = 0xffff;
data[3] = 0xffff;
//#endif //#endif
} }
else else
if (eeprom_addr == 0x0F40) if (eeprom_addr == 0x0F40)
{ // killed flag is here { // killed flag, wipe it
data[2] = false; // remove it data[2] = 0;
} }
EEPROM_WriteBuffer8(eeprom_addr, data); // 8 bytes at a time EEPROM_WriteBuffer8(eeprom_addr, data); // 8 bytes at a time
data += write_size / sizeof(data[0]); data += write_size / sizeof(data[0]);
eeprom_addr += write_size; eeprom_addr += write_size;
} }

Binary file not shown.

Binary file not shown.

View File

@ -548,6 +548,8 @@ void UI_DisplayMenu(void)
strcpy(String, "USE\nMAIN SQL"); strcpy(String, "USE\nMAIN SQL");
else else
sprintf(String, "%d", g_sub_menu_selection); sprintf(String, "%d", g_sub_menu_selection);
// g_tx_vfo->squelch_level = g_sub_menu_selection;
// RADIO_ConfigureSquelchAndOutputPower(g_tx_vfo);
break; break;
case MENU_MIC_GAIN: case MENU_MIC_GAIN: