From 28f706760fbc8b16aa5324886aa6cf85b73ae02c Mon Sep 17 00:00:00 2001 From: Daniel Bates Date: Fri, 31 May 2019 09:50:42 +0100 Subject: [PATCH] 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. --- DateStrings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DateStrings.cpp b/DateStrings.cpp index 87766df..131d4fe 100644 --- a/DateStrings.cpp +++ b/DateStrings.cpp @@ -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