diff options
Diffstat (limited to 'tmk_core/common/progmem.h')
-rw-r--r-- | tmk_core/common/progmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/progmem.h b/tmk_core/common/progmem.h index 199b1bedf..5b2765625 100644 --- a/tmk_core/common/progmem.h +++ b/tmk_core/common/progmem.h @@ -5,8 +5,8 @@ # include <avr/pgmspace.h> #elif defined(__arm__) # define PROGMEM -# define pgm_read_byte(p) *(p) -# define pgm_read_word(p) *(p) +# define pgm_read_byte(p) *((unsigned char*)p) +# define pgm_read_word(p) *((uint16_t*)p) #endif #endif |