From ce65a1484fb490736cc9ad4bd8c2ebae6af9bccd Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sat, 20 Apr 2024 01:54:47 +0100 Subject: [PATCH] Make static table local const --- src/stk500v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stk500v2.c b/src/stk500v2.c index d3873898..f9c93c93 100644 --- a/src/stk500v2.c +++ b/src/stk500v2.c @@ -3225,7 +3225,7 @@ static int stk500v2_get_varef(const PROGRAMMER *pgm, unsigned int chan, double * static int stk500v2_set_fosc(const PROGRAMMER *pgm, double v) { int fosc; unsigned char prescale, cmatch; - static unsigned ps[] = { + const unsigned ps[] = { 1, 8, 32, 64, 128, 256, 1024 }; size_t idx;