From ea9da498a7f9bc6cf16dab263eca932600666915 Mon Sep 17 00:00:00 2001 From: douniwan5788 Date: Sat, 21 Sep 2024 12:47:47 +0800 Subject: [PATCH] refactor: change BigBuf to const --- armsrc/BigBuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/BigBuf.c b/armsrc/BigBuf.c index 1a2a64d066..96caba6bfa 100644 --- a/armsrc/BigBuf.c +++ b/armsrc/BigBuf.c @@ -30,7 +30,7 @@ extern uint32_t _stack_start[], __bss_end__[]; // BigBuf is the large multi-purpose buffer, typically used to hold A/D samples or traces. // Also used to hold various smaller buffers and the Mifare Emulator Memory. // We know that bss is aligned to 4 bytes. -static uint8_t *BigBuf = (uint8_t *)__bss_end__; +static uint8_t *const BigBuf = (uint8_t *)__bss_end__; /* BigBuf memory layout: Pointer to highest available memory: s_bigbuf_hi