From 3d912878f1627719a006291eef5d60142a2f474f Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 8 Jan 2025 13:25:43 +0100 Subject: [PATCH] Add OTP (dummy value) for emulation. Signed-off-by: Pol Henarejos --- src/fs/otp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fs/otp.c b/src/fs/otp.c index 6e28e9b..3f32398 100644 --- a/src/fs/otp.c +++ b/src/fs/otp.c @@ -231,4 +231,11 @@ void init_otp_files() { } } #endif // PICO_RP2350 || ESP_PLATFORM +#ifdef 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 }