Skip to content

Commit 57cdd53

Browse files
authored
Merge pull request #22 from makermelissa/main
Actually return something with get_local_time
2 parents 3d1fbac + e1c3ee9 commit 57cdd53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_portalbase/network.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ def get_local_time(self, location=None):
241241
(year, month, mday, hours, minutes, seconds, week_day, year_day, is_dst)
242242
)
243243

244-
if rtc is not None:
245-
rtc.RTC().datetime = now
244+
if rtc is not None:
245+
rtc.RTC().datetime = now
246+
247+
return reply
246248

247249
def wget(self, url, filename, *, chunk_size=12000):
248250
"""Download a url and save to filename location, like the command wget.

0 commit comments

Comments
 (0)