duck531a98/esp8266-weather-station-epaper

arduinoIDE编译报错

Closed this issue · 1 comments

Arduino:1.8.9 (Windows 8.1), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled, none, 26 MHz, 40MHz, QIO (fast), 4M (3M SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

sketch\TimeClient.cpp: In member function 'long int TimeClient::getCurrentEpochWithUtcOffset()':

TimeClient.cpp:140:67: error: invalid operands of types 'double' and 'long int' to binary 'operator%'

return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;

                                                               ^

exit status 1
invalid operands of types 'double' and 'long int' to binary 'operator%'

程序运行路径改为全英文,开发板选项改为nodemcu1.0之后解决