Skip to content

Commit

Permalink
Merge pull request #184 from elfosardo/simplify-rtc
Browse files Browse the repository at this point in the history
[trivial] use list literal for rtc_clock
  • Loading branch information
elfosardo authored Nov 22, 2021
2 parents 06f5ace + 1674dc3 commit 7662a1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hardware/rtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ def get_rtc():


def detect_rtc_clock():
hw_lst = []
hw_lst.append(('system', 'rtc', 'utc', get_rtc()))
return hw_lst
rtc_clock = [('system', 'rtc', 'utc', get_rtc())]
return rtc_clock

0 comments on commit 7662a1d

Please sign in to comment.