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

Compile error in arduino IDE of the library #113

Open
pvdw0310 opened this issue Feb 27, 2024 · 0 comments
Open

Compile error in arduino IDE of the library #113

pvdw0310 opened this issue Feb 27, 2024 · 0 comments

Comments

@pvdw0310
Copy link

pvdw0310 commented Feb 27, 2024

I made years ago some programs for the esp8266 with a nextion touch screen. It is still working and I like to change some things in that program. But now I get some compiler errors and I don't find the problem.

In nexRtc.cpp I got 3 errors that there was no return in some functions.
-> I change the file with some extra returns like :

 cmd += sec;
 sendCommand(cmd.c_str());
 recvRetCommandFinished();

-> return (true); // I added this otherwise compile error

Then I get the next error:
C:\Users\peter\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion\NexRtc.cpp: In member function 'bool NexRtc::write_rtc_time(char*)':
C:\Users\peter\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion\NexRtc.cpp:20:30: error: control reaches end of non-void function [-Werror=return-type]
20 | String cmd = String("rtc");

But now I don't know what I can do to get around the problem?
Is there somebody that can point me in the direction of some solution?
I have also a similar error in nexUpload.cpp.
Thanks.

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