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

Fix F+4 and F+* search bug

This commit is contained in:
OneOfEleven
2023-10-13 17:46:28 +01:00
parent 7f7c9490eb
commit bb79d51377
6 changed files with 60 additions and 35 deletions

View File

@ -348,8 +348,8 @@ static void cmd_051D(const uint8_t *pBuffer)
#endif
#ifdef ENABLE_PWRON_PASSWORD
if ((Offset < 0x0E98 || Offset >= 0x0EA0) || !g_password_locked || pCmd->bAllowPassword)
EEPROM_WriteBuffer(Offset, &pCmd->Data[i * write_size]);
if ((Offset < 0x0E98 || Offset >= 0x0EA0) || !g_password_locked || pCmd->allow_password)
EEPROM_WriteBuffer(Offset, &data[i * write_size]);
#else
EEPROM_WriteBuffer(Offset, &data[i * write_size]);
#endif