8000 Typo in docs for supervisor.ticks_ms() · netroy/circuitpython@c0b57ff · GitHub
[go: up one dir, main page]

Skip to content

Commit c0b57ff

Browse files
authored
Typo in docs for supervisor.ticks_ms()
https://docs.circuitpython.org/en/latest/shared-bindings/supervisor/index.html#supervisor.ticks_ms ticks_add() helper function has an error
1 parent 3056365 commit c0b57ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/supervisor/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(supervisor_set_next_code_file_obj, 0, supervisor_set_
197197
//|
198198
//| def ticks_add(ticks, delta):
199199
//| "Add a delta to a base number of ticks, performing wraparound at 2**29ms."
200-
//| return (a + b) % _TICKS_PERIOD
200+
//| return (ticks + delta) % _TICKS_PERIOD
201201
//|
202202
//| def ticks_diff(ticks1, ticks2):
203203
//| "Compute the signed difference between two ticks values, assuming that they are within 2**28 ticks"

0 commit comments

Comments
 (0)
0