Skip to content

Commit 4a61d08

Browse files
committed
compile warning for esp8266
1 parent ab843d4 commit 4a61d08

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/helix_pgm.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

3-
#if defined(ARDUINO) && __has_include(<pgm_space>)
4-
#include <pgm_space.h>
3+
#ifdef ESP8266
4+
# include "pgmspace.h"
5+
#elif defined(ARDUINO) && __has_include(<pgm_space.h>)
6+
# include <pgm_space.h>
57
#else
6-
7-
#define PROGMEM
8-
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
9-
#define pgm_read_word(addr) (*(const unsigned short *)(addr))
10-
8+
# define PROGMEM
9+
# define pgm_read_byte(addr) (*(const unsigned char *)(addr))
10+
# define pgm_read_word(addr) (*(const unsigned short *)(addr))
1111
#endif

0 commit comments

Comments
 (0)