If this solves your problem please also update your other question your other question so that the people trying to help you there will know it's fixed.
If this solves your problem please also update your other question so that the people trying to help you there will know it's fixed.
If this solves your problem please also update your other question so that the people trying to help you there will know it's fixed.
- 4.3k
- 2
- 23
- 43
EDIT: My pull request has now been merged so the issue can also be solved by installing the updated Tecsmith/DS3232RTC library.
If this solves your problem please also update your other question so that the people trying to help you there will know it's fixed.
If this solves your problem please also update your other question so that the people trying to help you there will know it's fixed.
EDIT: My pull request has now been merged so the issue can also be solved by installing the updated Tecsmith/DS3232RTC library.
If this solves your problem please also update your other question so that the people trying to help you there will know it's fixed.
to include the wrong file, time.h which causes the error since indeed that file doesn't declare tmElements_t. This problem is known to the author of the Time library and he has moved the code to a file named TimeLib.h as a workaround. The file Time.h was left for backwards compatibility. So the solution is to change: #include <Time.h> to
#include <Time.h>
to: #include <TimeLib.h> I
#include <TimeLib.h>
I was able to get the TestRTC sketch to compile by just making this change in TestRTC.ino but you may also need to change line 25 of DS3232RTC.h.
to include the wrong file, time.h which causes the error since indeed that file doesn't declare tmElements_t. This problem is known to the author of the Time library and he has moved the code to a file named TimeLib.h as a workaround. The file Time.h was left for backwards compatibility. So the solution is to change: #include <Time.h> to: #include <TimeLib.h> I was able to get the TestRTC sketch to compile by just making this change in TestRTC.ino but you may also need to change line 25 of DS3232RTC.h.
to include the wrong file, time.h which causes the error since indeed that file doesn't declare tmElements_t. This problem is known to the author of the Time library and he has moved the code to a file named TimeLib.h as a workaround. The file Time.h was left for backwards compatibility. So the solution is to change:
#include <Time.h>
to:
#include <TimeLib.h>
I was able to get the TestRTC sketch to compile by just making this change in TestRTC.ino but you may also need to change line 25 of DS3232RTC.h.