From: Keith Packard Date: Mon, 3 Apr 2017 18:36:52 +0000 (-0700) Subject: cortexelf-v1: Make bit flipping array constant X-Git-Tag: 1.7~58 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=89c8e0299504e66fc416a778055958cff467e008 cortexelf-v1: Make bit flipping array constant Signed-off-by: Keith Packard --- diff --git a/src/cortexelf-v1/ao_flip_bits.5c b/src/cortexelf-v1/ao_flip_bits.5c index 26900893..055d5299 100644 --- a/src/cortexelf-v1/ao_flip_bits.5c +++ b/src/cortexelf-v1/ao_flip_bits.5c @@ -9,7 +9,7 @@ int flip_bits(int a) return result; } -printf ("static uint8_t ao_flip_bits[256] = {\n"); +printf ("static const uint8_t ao_flip_bits[256] = {\n"); for (int i = 0; i < 256; i++) { printf (" 0x%02x,", flip_bits(i));