Skip to main content
Arduino

Return to Answer

replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Source Link

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.

Note that my pull request fixing the library's Time.h issue was merged
Source Link
per1234
  • 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.

fix code format 2 places
Source Link

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.

Fix pull request link
Source Link
per1234
  • 4.3k
  • 2
  • 23
  • 43
Loading
Source Link
per1234
  • 4.3k
  • 2
  • 23
  • 43
Loading

AltStyle によって変換されたページ (->オリジナル) /