-
Notifications
You must be signed in to change notification settings - Fork 65
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
Library gives errors. Nextion::ack() #47
Comments
I'm getting the same error as well now. Was working fine but then poof, started to fail. Also using an ESP8266 and I hadn't played with this code in a while, so I suspect it's also because I updated the ESP libraries. Alternatively, it could be due to the Arduino IDE being more restrictive during compiling.... I temporarily fixed it as follows (added return true; near the end of the function in Nextion.cpp. However, I don't know if it's correct to return True or False if nothing evaluates in the function: boolean Nextion::ack(void){ |
I just downgraded the ESP8266 core to the last of version 2 and it cured it. |
The problem is caused by the The solution is to add an additional
This fixes the "Failed to compile for " error with the current (3.0.2) version of the ESP8266 core. Pete, |
I get the following error when trying to use the library.
Nextion.cpp: In member function 'boolean Nextion::ack()':
Nextion.cpp:119:1: error: control reaches end of non-void function [-Werror=return-type]
119 | }//end
| ^
This only happens when using the latest ESP8266 software
The text was updated successfully, but these errors were encountered: