diff --git a/app/uart.c b/app/uart.c index b878d1d..3daaa06 100644 --- a/app/uart.c +++ b/app/uart.c @@ -276,8 +276,10 @@ 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); @@ -374,8 +376,10 @@ static void CMD_052D(const uint8_t *pBuffer) bIsLocked = bHasCustomAesKey; + /* if (!bIsLocked) bIsLocked = IsBadChallenge(gCustomAesKey, gChallenge, pCmd->Response); + */ if (!bIsLocked) { diff --git a/compile-with-docker.sh b/compile-with-docker.sh index ae2b0ed..2bc24de 100755 --- a/compile-with-docker.sh +++ b/compile-with-docker.sh @@ -36,7 +36,7 @@ bandscope() { ENABLE_SPECTRUM=1 \ ENABLE_FMRADIO=0 \ ENABLE_AIRCOPY=0 \ - ENABLE_FEAT_F4HWN_PMR=1 \ + ENABLE_FEAT_F4HWN_PMR=0 \ ENABLE_NOAA=0 \ ENABLE_FEAT_F4HWN_RESCUE_OPS=0 \ EDITION_STRING=Bandscope \ diff --git a/settings.c b/settings.c index f9bb641..d131521 100644 --- a/settings.c +++ b/settings.c @@ -329,6 +329,8 @@ 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) @@ -337,6 +339,7 @@ void SETTINGS_InitEEPROM(void) return; } } + */ #ifdef ENABLE_FEAT_F4HWN // 1FF0..0x1FF7