duck531a98 / esp8266-weather-station-epaper

use esp8266 to show weather forecast on 2.9inch e-paper
GNU General Public License v3.0
175 stars 40 forks source link

arduinoIDE编译报错 #5

Closed irongu closed 5 years ago

irongu commented 5 years ago

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%'

irongu commented 5 years ago

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