Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisib committed Jan 6, 2025
1 parent 7c8a31d commit debda2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions software/firmware/experimental/clocks/clock_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def check_valid_datetime(self, datetime):
@param datetime
"""
# fmt: off
n_days = self.month_length(datetime)
if (
# To anyone reading this from the past: congrats on time-travel! Your year is not supported
Expand Down Expand Up @@ -149,3 +150,4 @@ def check_valid_datetime(self, datetime):
)
):
raise ValueError("Invalid datetime tuple")
# fmt: on
2 changes: 1 addition & 1 deletion software/firmware/experimental/rtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DateTimeIndex:
Note that SECOND and WEEKDAY are optional and may be omitted in some implementations
"""

YEAR = 0
MONTH = 1
DAY = 2
Expand All @@ -57,7 +58,6 @@ class DateTimeIndex:
WEEKDAY = 6



class RealtimeClock:
"""
A continually-running clock that provides the day & date.
Expand Down

0 comments on commit debda2a

Please sign in to comment.