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

Convert to unsigned long to remove warnings. #89

Open
dapostol73 opened this issue Apr 1, 2024 · 0 comments
Open

Convert to unsigned long to remove warnings. #89

dapostol73 opened this issue Apr 1, 2024 · 0 comments

Comments

@dapostol73
Copy link

Can you add unsigned to the this line, it will remove warnings about comparing an unsigned long with a signed long at line 1604 & 1655

unsigned long timeoutTime = millis() + TIMEOUT_MS_SERVERRESPONSE;

megaatmega2560\ThingSpeak\src\ThingSpeak.h:1604:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(millis() > timeoutTime){
megaatmega2560\ThingSpeak\src\ThingSpeak.h:1655:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(millis() > timeoutTime){

long timeoutTime = millis() + TIMEOUT_MS_SERVERRESPONSE;

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

1 participant