Merge pull request #120 from Bolukan/patch-1

strcpy_P not needed for ESP8266/2.5.0-beta2 sdk
This commit is contained in:
Paul Stoffregen
2019-03-14 12:01:48 -07:00
committed by GitHub

View File

@ -17,10 +17,12 @@
#define PGM_P const char *
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define pgm_read_word(addr) (*(const unsigned char **)(addr))
#ifndef ESP8266
#ifndef strcpy_P
#define strcpy_P(dest, src) strcpy((dest), (src))
#endif
#endif
#endif
#include <string.h> // for strcpy_P or strcpy
#include "TimeLib.h"