You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
-> 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.
The text was updated successfully, but these errors were encountered:
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 :
-> 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.
The text was updated successfully, but these errors were encountered: