1
TinyDuino Processors & TinyShields / TinyShield_RTC set date problem with RTC Library Tests
« on: September 12, 2015, 02:00:39 PM »
Apologies in advance if this has been covered in another thread, but I can't seem to find a search facility for the forum.
I've downloaded and installed the TinyShield_RTC example code for the [url https://www.tiny-circuits.com/tiny-shield-rtc.html]Tiny Shield Realtime Clock module[/url].
When I try to use "Set Time" function with the RTC Library Tests, the date portion is mangled.
I put some print statements into the set_time() function so I could see how it handles my input.
I entered the following:
20150912 13:56:45
And I get the response:
Entered date is: -12019840 13:56:45 <====== (This is the output of my Serial.print calls in set_time() )
The current time is 0/8/2047 13:56:45
It looks like it correctly parses the time, but the date is completely munged.
Could the problem be in the overloaded read_int() function?
RLW
I've downloaded and installed the TinyShield_RTC example code for the [url https://www.tiny-circuits.com/tiny-shield-rtc.html]Tiny Shield Realtime Clock module[/url].
When I try to use "Set Time" function with the RTC Library Tests, the date portion is mangled.
I put some print statements into the set_time() function so I could see how it handles my input.
I entered the following:
20150912 13:56:45
And I get the response:
Entered date is: -12019840 13:56:45 <====== (This is the output of my Serial.print calls in set_time() )
The current time is 0/8/2047 13:56:45
It looks like it correctly parses the time, but the date is completely munged.
Could the problem be in the overloaded read_int() function?
RLW