From 3ab1f8ac3e0750caf6ed7634e8400f5e8cd3a143 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 11 Feb 2025 02:19:54 +0100 Subject: [PATCH] Revert "Save 52 bytes" This reverts commit b8b652b10ed25d4f36f869444ff652073e0df803. --- app/uart.c | 4 ---- compile-with-docker.sh | 2 +- settings.c | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/uart.c b/app/uart.c index 3daaa06..b878d1d 100644 --- a/app/uart.c +++ b/app/uart.c @@ -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) { diff --git a/compile-with-docker.sh b/compile-with-docker.sh index 2bc24de..ae2b0ed 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=0 \ + ENABLE_FEAT_F4HWN_PMR=1 \ ENABLE_NOAA=0 \ ENABLE_FEAT_F4HWN_RESCUE_OPS=0 \ EDITION_STRING=Bandscope \ diff --git a/settings.c b/settings.c index d131521..f9bb641 100644 --- a/settings.c +++ b/settings.c @@ -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