forked from mirrors/qmk_userspace
Add missing parentheses to some important macros (#4775)
* Add missing parentheses to quantum_keycodes macros * Add missing parentheses to progmem macros
This commit is contained in:
parent
9eb7b7919f
commit
64c957d907
2 changed files with 13 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue