Skip to content

Commit

Permalink
Remove this fucking and useless bHasCustomAesKey
Browse files Browse the repository at this point in the history
  • Loading branch information
armel committed Feb 10, 2025
1 parent d365896 commit 48bc5b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ static void CMD_051B(const uint8_t *pBuffer)
Reply.Data.Offset = pCmd->Offset;
Reply.Data.Size = pCmd->Size;

if (bHasCustomAesKey)
bLocked = gIsLocked;
//if (bHasCustomAesKey)
// bLocked = gIsLocked;

if (!bLocked)
EEPROM_ReadBuffer(pCmd->Offset, Reply.Data.Data, pCmd->Size);
Expand Down
4 changes: 3 additions & 1 deletion settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ void SETTINGS_InitEEPROM(void)
}

// 0F30..0F3F
EEPROM_ReadBuffer(0x0F30, gCustomAesKey, sizeof(gCustomAesKey));
//EEPROM_ReadBuffer(0x0F30, gCustomAesKey, sizeof(gCustomAesKey));
bHasCustomAesKey = false;
/*
for (unsigned int i = 0; i < ARRAY_SIZE(gCustomAesKey); i++)
{
if (gCustomAesKey[i] != 0xFFFFFFFFu)
Expand All @@ -337,6 +338,7 @@ void SETTINGS_InitEEPROM(void)
return;
}
}
*/

#ifdef ENABLE_FEAT_F4HWN
// 1FF0..0x1FF7
Expand Down

0 comments on commit 48bc5b4

Please sign in to comment.