Skip to content

Commit

Permalink
Add missing parentheses to progmem macros
Browse files Browse the repository at this point in the history
  • Loading branch information
vomindoraan committed Jan 8, 2019
1 parent f64e11b commit 7211391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmk_core/common/progmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# include <avr/pgmspace.h>
#else
# define PROGMEM
# define pgm_read_byte(p) *((unsigned char*)p)
# define pgm_read_word(p) *((uint16_t*)p)
# define pgm_read_dword(p) *((uint32_t*)p)
# define pgm_read_byte(p) *((unsigned char*)(p))
# define pgm_read_word(p) *((uint16_t*)(p))
# define pgm_read_dword(p) *((uint32_t*)(p))
#endif

#endif

0 comments on commit 7211391

Please sign in to comment.