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): def set_clocks(self):
ntptime.settime() ntptime.settime()
( now = time.localtime()
year, self.rtc.datetime(now[:7])
month,
day,
weekday,
hours,
minutes,
seconds,
_,
) = machine.RTC().datetime()
self.rtc.datetime((year, month, day, hours, minutes, seconds, weekday))