Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
328 stars 159 forks source link

invalid operands of types 'float' and 'long int' to binary 'operator%' #212

Closed scaronex closed 2 years ago

scaronex commented 2 years ago

hello on software 2.16 my clock stopped working so I wanted to upload a newer one, but I have an error

C:\Users\scaro\Downloads\marquee-scroller-Scroller_V2.2\marquee\TimeClient.cpp: In member function 'long int TimeClient::getCurrentEpochWithUtcOffset()':

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

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

  |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~

  |               |                                                   |

  |               float                                               long int

C:\Users\scaro\Downloads\marquee-scroller-Scroller_V2.2\marquee\NewsApiClient.cpp: In member function 'void NewsApiClient::updateNews()':

NewsApiClient.cpp:49:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)

49 | http.begin(apiGetData);

  |   ~~~~~~~~~~^~~~~~~~~~~~

C:\Users\scaro\Downloads\marquee-scroller-Scroller_V2.2\marquee\BitcoinApiClient.cpp: In member function 'void BitcoinApiClient::updateBitcoinData(String)':

BitcoinApiClient.cpp:44:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)

44 | http.begin(apiGetData);

  |   ~~~~~~~~~~^~~~~~~~~~~~

exit status 1

invalid operands of types 'float' and 'long int' to binary 'operator%'

Qrome commented 2 years ago

Get the 2.18 update. Also use the correct version of ESP8266 core as mentioned in the readme.md file.

cyberrat14 commented 2 years ago

I have the same issue with the version 2.15 stop to working. But I'm unable to updload the version 2.18 into the Firmware Update

Qrome commented 2 years ago

Why can't you upload the 2.18 bin file?

Qrome commented 2 years ago

The issue created here was closed as it is resolved in release 2.18 -- if you have issues updating please compile it again. There is no issue updating.