switchdoclabs / RTC_SDL_DS3231

Raspberry Pi Python Library for the Real Time Clock DS3231
30 stars 29 forks source link

You code is broken, fails on write_all to correctly set RTC hours and year values #5

Closed Nodi-Rubrum closed 4 years ago

Nodi-Rubrum commented 4 years ago

You code is broken, fails on write_all to correctly set RTC hours and year values. If I set RTC via dtoverlay (Pi) or other method, then try to read back date and time, the hour and year are incorrect and read_datetime errors out where hour should be 15 it returns 25, where year should be 20 it returns as 37.

Nodi-Rubrum commented 4 years ago

Found issue, original RTC setting was corrupted, invalid.

Nodi-Rubrum commented 4 years ago

Closed