From 2688dd87389503a188c5b51cae17d6380f0dbe83 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Aug 2013 22:46:36 +0000 Subject: [PATCH] Make sure all PROGMEM data is const. --- lib/Figure.cpp | 2 +- lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Figure.cpp b/lib/Figure.cpp index 438fe4d..4264840 100644 --- a/lib/Figure.cpp +++ b/lib/Figure.cpp @@ -30,7 +30,7 @@ #define C(c,r) ((c << 4) | r) -PROGMEM uint8_t figuresData[][14] = { +PROGMEM const uint8_t figuresData[][14] = { { C(0,0), C(1,0), C(2,0), C(0,1), C(2,1), C(0,2), C(2,2), C(0,3), C(2,3), C(0,4), C(1,4), C(2,4), 255, 255 }, { C(1,0), C(0,1), C(1,1), C(1,2), C(1,3), C(0,4), C(1,4), C(2,4), 255, 255, 255, 255, 255, 255 }, { C(0,0), C(1,0), C(2,0), C(2,1), C(1,2), C(0,3), C(0,4), C(1,4), C(2,4), 255, 255, 255, 255, 255 }, diff --git a/lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde b/lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde index 689908e..e18688b 100644 --- a/lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde +++ b/lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde @@ -47,7 +47,7 @@ with our RAM. You cannot change the array during run-time, only when you upload to the Arduino. You will need to pull it out of ROM, which is covered below. If you want it to stay in RAM, just delete PROGMEM */ -uint16_t BitMap[][9] PROGMEM = { +PROGMEM const uint16_t BitMap[][9] = { //Diaganal swipe across the screen {1, 0, 0, 0, 0, 0, 0, 0, 0}, {3, 1, 0, 0, 0, 0, 0, 0, 0},