From b67e9ac143fcf9b903684eacec268e760939c364 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 28 Nov 2025 00:12:18 +0100 Subject: [PATCH] Fix key generation for RP2040. Signed-off-by: Pol Henarejos --- src/fs/otp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fs/otp.c b/src/fs/otp.c index 12b0f80..06e9387 100644 --- a/src/fs/otp.c +++ b/src/fs/otp.c @@ -350,12 +350,11 @@ void init_otp_files() { #endif } } -#else +#elif defined(ENABLE_EMULATION) static uint8_t _otp1[32] = {0}, _otp2[32] = {0}; memset(_otp1, 0xAC, sizeof(_otp1)); memset(_otp2, 0xBE, sizeof(_otp2)); otp_key_1 = _otp1; otp_key_2 = _otp2; #endif - }