Skip to content

Commit

Permalink
Make sure all PROGMEM data is const.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 30, 2013
1 parent e208b08 commit 2688dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Figure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion lib/examples/LoLShield_BasicTest/LoLShield_BasicTest.pde
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 2688dd8

Please sign in to comment.