Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert authored Aug 9, 2024
1 parent b8a4e11 commit 892cca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def ticks_ms() -> int:

def ticks_add(ticks: int, delta: int) -> int:
"Add a delta to a base number of ticks, performing wraparound at 2**29ms."
if -_TICKS_HALFPERIOD < delta < _TICKS_HALFPERIOD:
if -_TICKS_HALFPERIOD < delta < _TICKS_HALFPERIOD:
return (ticks + delta) % _TICKS_PERIOD
raise OverflowError("ticks interval overflow")

Expand Down

0 comments on commit 892cca3

Please sign in to comment.