Improve set_clocks

This commit is contained in:
Gabriel Augendre 2023-03-12 10:26:41 +01:00
parent 76818e674b
commit f6fe6b1fc2

View file

@ -185,14 +185,5 @@ class Badger2040W:
def set_clocks(self):
ntptime.settime()
(
year,
month,
day,
weekday,
hours,
minutes,
seconds,
_,
) = machine.RTC().datetime()
self.rtc.datetime((year, month, day, hours, minutes, seconds, weekday))
now = time.localtime()
self.rtc.datetime(now[:7])