We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab843d4 commit 4a61d08Copy full SHA for 4a61d08
src/helix_pgm.h
@@ -1,11 +1,11 @@
1
#pragma once
2
3
-#if defined(ARDUINO) && __has_include(<pgm_space>)
4
-#include <pgm_space.h>
+#ifdef ESP8266
+# include "pgmspace.h"
5
+#elif defined(ARDUINO) && __has_include(<pgm_space.h>)
6
+# include <pgm_space.h>
7
#else
-
-#define PROGMEM
8
-#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
9
-#define pgm_read_word(addr) (*(const unsigned short *)(addr))
10
+# define PROGMEM
+# define pgm_read_byte(addr) (*(const unsigned char *)(addr))
+# define pgm_read_word(addr) (*(const unsigned short *)(addr))
11
#endif
0 commit comments