0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

new eeprom structure array (not yet used)

This commit is contained in:
OneOfEleven
2023-10-13 23:27:54 +01:00
parent f35deba315
commit 8fb57d9d19
12 changed files with 329 additions and 50 deletions

View File

@ -351,11 +351,11 @@ static void cmd_051D(const uint8_t *pBuffer)
#endif
#ifdef ENABLE_PWRON_PASSWORD
if ((Offset < 0x0E98 || Offset >= 0x0EA0) || !g_password_locked || pCmd->allow_password)
if ((Offset < 0x0E98 || Offset >= 0x0E9C) || !g_password_locked || pCmd->allow_password)
EEPROM_WriteBuffer(Offset, data);
#else
if (Offset == 0x0E90)
memset(data + 8, 0xff, 4); // wipe the password
if (Offset == 0x0E98)
memset(data, 0xff, 4); // wipe the password
EEPROM_WriteBuffer(Offset, data);
#endif
}