Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile 2.5a from release source #74

Closed
dino340 opened this issue Dec 16, 2018 · 1 comment
Closed

Cannot compile 2.5a from release source #74

dino340 opened this issue Dec 16, 2018 · 1 comment

Comments

@dino340
Copy link

dino340 commented Dec 16, 2018

Attempting to compile gives this error message:

Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, All Flash Contents, 921600"

marquee:1:1: error: expected unqualified-id before numeric constant

 5a/** The MIT License (MIT)

 ^

In file included from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41:0,

                 from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,

                 from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,

                 from sketch\Settings.h:38,

                 from C:\Users\Garrett\Desktop\marquee-scroller-Scroller_V2.5a\marquee\marquee.ino:28:

C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:140:28: error: expected declaration before end of line

 #pragma GCC diagnostic push

                            ^

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

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

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

                                                                   ^

exit status 1
expected unqualified-id before numeric constant

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
@Qrome
Copy link
Owner

Qrome commented Dec 16, 2018

This is because you are using the newer ESP8266 Core version 2.5.X beta -- the latest release 2.6 has the cast to long that fixes it for. This has already been addressed and fixed in Marque Scroller 2.6 release.

@Qrome Qrome closed this as completed Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants