Open sprinkmeier opened 11 years ago
the fonts are in PROGMEM but not declared as const. the new avr-gcc complains about that.
trivial fix, not really worth a clone/pull request etc:
diff --git a/Arial_black_16.h b/Arial_black_16.h index aa11fd9..638bee5 100644 --- a/Arial_black_16.h +++ b/Arial_black_16.h @@ -45,7 +45,7 @@
-static uint8_t Arial_Black_16[] PROGMEM = { +static const uint8_t Arial_Black_16[] PROGMEM = { 0x30, 0x86, // size 0x0A, // width 0x10, // height diff --git a/SystemFont5x7.h b/SystemFont5x7.h index 844dfe1..e5ab7e5 100644 --- a/SystemFont5x7.h +++ b/SystemFont5x7.h @@ -45,7 +45,7 @@
-static uint8_t System5x7[] PROGMEM = { +static const uint8_t System5x7[] PROGMEM = { 0x0, 0x0, // size of zero indicates fixed width font, actual length is width * height 0x05, // width
This is because the tool "GLCD FontCreator2" used to create fonts from any windows font, creates the font data as static.
the fonts are in PROGMEM but not declared as const. the new avr-gcc complains about that.
trivial fix, not really worth a clone/pull request etc:
diff --git a/Arial_black_16.h b/Arial_black_16.h index aa11fd9..638bee5 100644 --- a/Arial_black_16.h +++ b/Arial_black_16.h @@ -45,7 +45,7 @@
define ARIAL_BLACK_16_WIDTH 10
define ARIAL_BLACK_16_HEIGHT 16
-static uint8_t Arial_Black_16[] PROGMEM = { +static const uint8_t Arial_Black_16[] PROGMEM = { 0x30, 0x86, // size 0x0A, // width 0x10, // height diff --git a/SystemFont5x7.h b/SystemFont5x7.h index 844dfe1..e5ab7e5 100644 --- a/SystemFont5x7.h +++ b/SystemFont5x7.h @@ -45,7 +45,7 @@
define SystemFont5x7 System5x7
-static uint8_t System5x7[] PROGMEM = { +static const uint8_t System5x7[] PROGMEM = { 0x0, 0x0, // size of zero indicates fixed width font, actual length is width * height 0x05, // width
0x07, // height