Update DateStrings.cpp

This now compiles on ESP platform v2.4.2 and v2.5.2 on Arduino IDE 1.8.9 and 1.9.0 beta.
I've also uploaded to example to ESP8266 to double check and works fine.
This commit is contained in:
Daniel Bates
2019-05-31 09:50:42 +01:00
committed by GitHub
parent baa403f55b
commit 28f706760f

View File

@ -17,7 +17,7 @@
#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
#ifdef ESP8266
#ifndef strcpy_P
#define strcpy_P(dest, src) strcpy((dest), (src))
#endif