kopia lustrzana https://github.com/peterhinch/micropython-samples
Clear existing cal at start of getcal()
rodzic
5371d0c213
commit
ddb3d391f9
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue