RealTimeClock.SetDateTime() Is Not Working Properly

Using a Cerb40II with latest firmware. I’ve got a 3.3v battery conencted to vbatt pin. I’m setting the clock with the
RealTimeClock.SetDateTime() method and after power cycling, I keep getting 1/1/1980 12:00am when I read the datetime back in with GetDateTime()

Any Ideas? Do I need to go through the Register Class to update the Clock?

https://www.ghielectronics.com/docs/29/real-time-clock-rtc

See the thread "RealTimeClock.SetDateTime strange behavior (G400) " two monthes ago.
https://www.ghielectronics.com/community/forum/topic?id=22644
Repeating the SetDateTime() solves the issue.

1 Like