Revert "Save 52 bytes"

This reverts commit b8b652b10e.
This commit is contained in:
Armel FAUVEAU
2025-02-11 02:19:54 +01:00
parent b8b652b10e
commit 3ab1f8ac3e
3 changed files with 1 additions and 8 deletions

View File

@@ -276,10 +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 (!bLocked)
EEPROM_ReadBuffer(pCmd->Offset, Reply.Data.Data, pCmd->Size);
@@ -376,10 +374,8 @@ static void CMD_052D(const uint8_t *pBuffer)
bIsLocked = bHasCustomAesKey;
/*
if (!bIsLocked)
bIsLocked = IsBadChallenge(gCustomAesKey, gChallenge, pCmd->Response);
*/
if (!bIsLocked)
{

View File

@@ -36,7 +36,7 @@ bandscope() {
ENABLE_SPECTRUM=1 \
ENABLE_FMRADIO=0 \
ENABLE_AIRCOPY=0 \
ENABLE_FEAT_F4HWN_PMR=0 \
ENABLE_FEAT_F4HWN_PMR=1 \
ENABLE_NOAA=0 \
ENABLE_FEAT_F4HWN_RESCUE_OPS=0 \
EDITION_STRING=Bandscope \

View File

@@ -329,8 +329,6 @@ void SETTINGS_InitEEPROM(void)
// 0F30..0F3F
EEPROM_ReadBuffer(0x0F30, gCustomAesKey, sizeof(gCustomAesKey));
bHasCustomAesKey = false;
/*
for (unsigned int i = 0; i < ARRAY_SIZE(gCustomAesKey); i++)
{
if (gCustomAesKey[i] != 0xFFFFFFFFu)
@@ -339,7 +337,6 @@ void SETTINGS_InitEEPROM(void)
return;
}
}
*/
#ifdef ENABLE_FEAT_F4HWN
// 1FF0..0x1FF7