strcpy_P not needed for ESP8266/2.5.0-beta2 sdk

This commit is contained in:
Bollie
2019-03-14 19:58:33 +01:00
committed by GitHub
parent 6d0fc5e6f9
commit 81b3192047

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"