Clear existing cal at start of getcal()

pull/7/head
Peter Hinch 2016-01-06 12:07:08 +00:00
rodzic 5371d0c213
commit ddb3d391f9
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -99,6 +99,7 @@ class DS3231:
# to store the calibration factor on disk and issue rtc.calibration(factor) on boot.
def getcal(self, seconds):
rtc.calibration(0) # Clear existing cal
self.save_time() # Set DS3231 from RTC
self.await_transition()
rtcstart = now()