mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Fix program mem functionality
This commit is contained in:
parent
efaf0e830b
commit
fdfd48e8c8
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#if defined(__AVR__)
|
#if defined(__AVR__)
|
||||||
# include <avr/pgmspace.h>
|
# include <avr/pgmspace.h>
|
||||||
#elif defined(__arm__)
|
#else
|
||||||
# define PROGMEM
|
# define PROGMEM
|
||||||
# define pgm_read_byte(p) *((unsigned char*)p)
|
# define pgm_read_byte(p) *((unsigned char*)p)
|
||||||
# define pgm_read_word(p) *((uint16_t*)p)
|
# define pgm_read_word(p) *((uint16_t*)p)
|
||||||
|
|
Loading…
Reference in a new issue