Open micha6554 opened 5 years ago
Please confirm whether this solves the problem? https://github.com/PaulStoffregen/Time/commit/8ac0830c1e6f3cd627582f0085aa171161f6bbc2
i Paul with the ifndef, not work too
In file included from C:\Users\stephane\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta3/tools/sdk/libc/xtensa-lx106-elf/include/string.h:163:0,
from C:\Users\stephane\Documents\Arduino\libraries\Time\DateStrings.cpp:24:
C:\Users\stephane\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta3/tools/sdk/libc/xtensa-lx106-elf/include/sys/string.h:32:0: warning: "strcpy_P" redefined [enabled by default]
^
C:\Users\stephane\Documents\Arduino\libraries\Time\DateStrings.cpp:21:0: note: this is the location of the previous definition
Dear Sirs, because I faced on this problem on timelib library, then the bellow solved the problem, just to put in comments the bellow define at 20 line of DateStrings.cpp file that is belong to Time keeping library https://github.com/PaulStoffregen/Time /// NO NEEDED THIS FOR NEW ESP8266 /// #define strcpy_P(dest, src) strcpy((dest), (src))
Thanks
Please also see: https://github.com/PaulStoffregen/Time/issues/110
the bellow seems to work ok for ESP8266 target platform: `
`
Simple fix! No need for a PR I realise now, still getting used to Github etiquette! @PaulStoffregen https://github.com/PaulStoffregen/Time/pull/132
I'm still having this issue on 2.4.2. I can't use 2.5.x as there are breaking changes.
Any way to make this work?
Arduino IDE 1.8.9
Try this! In the DateStrings.cpp file, change line 20.
#ifndef ESP8266
replaced by
#ifdef ESP8266
C:\Users\kvms\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2/tools/sdk/libc/xtensa-lx106-elf/include/sys/string.h:32:0: warning: "strcpy_P" redefined [enabled by default]
define strcpy_P(dest, src) strncpy_P((dest), (src), SIZE_IRRELEVANT)
C:\Users\ms\AppData\Local\Arduino.sketchbook\libraries\Time-master\DateStrings.cpp:20:0: note: this is the location of the previous definition
define strcpy_P(dest, src) strcpy((dest), (src))
Thanks