summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/progmem.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-08-19 22:46:15 +1000
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-08-29 14:30:02 -0700
commit3f392c09b60d46d9e4a4d3cc150a26294dea4da7 (patch)
tree87fe710bbfd25890a106ea54b33e2b86fce02075 /tmk_core/common/progmem.h
parent47f8947bf5aa3ff1cbb484a2d6dc3fa818987700 (diff)
More Bluetooth refactoring (#9905)
Diffstat (limited to 'tmk_core/common/progmem.h')
-rw-r--r--tmk_core/common/progmem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmk_core/common/progmem.h b/tmk_core/common/progmem.h
index 39a918fe98..41b5b537ce 100644
--- a/tmk_core/common/progmem.h
+++ b/tmk_core/common/progmem.h
@@ -4,6 +4,7 @@
# include <avr/pgmspace.h>
#else
# define PROGMEM
+# define PGM_P const char *
# define memcpy_P(dest, src, n) memcpy(dest, src, n)
# define pgm_read_byte(address_short) *((uint8_t*)(address_short))
# define pgm_read_word(address_short) *((uint16_t*)(address_short))