Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g-e-n committed Jan 22, 2025
1 parent 0ebaaeb commit 38fd93b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/pysquared/pysquared.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,13 @@ def mag(self) -> Union[tuple[float, float, float], None]:
except Exception as e:
self.error_print("[ERROR][mag]" + "".join(traceback.format_exception(e)))

@property
def time(self) -> Union[tuple[int, int, int], None]:
try:
return self.rtc.get_time()
except Exception as e:
self.error_print("[ERROR][RTC]" + "".join(traceback.format_exception(e)))

@time.setter
def time(self, hms: tuple[int, int, int]) -> None:
"""
Expand Down

0 comments on commit 38fd93b

Please sign in to comment.