Skip to content

Commit

Permalink
Prevent PROGMEM redefine
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 23, 2020
1 parent d5977cd commit 001fec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clib/u8g.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ typedef uint8_t u8g_fntpgm_uint8_t;
#else

#define U8G_PROGMEM
#define PROGMEM
#ifndef PROGMEM
#define PROGMEM
#endif
typedef uint8_t u8g_pgm_uint8_t;
typedef uint8_t u8g_fntpgm_uint8_t;
#define u8g_pgm_read(adr) (*(const u8g_pgm_uint8_t *)(adr))
Expand Down

0 comments on commit 001fec5

Please sign in to comment.