Merge pull request #7275 from jshimbo/main

supervisor.ticks_ms() documentation has an error
This commit is contained in:
MicroDev 2022-11-29 14:34:24 +05:30 committed by GitHub
commit 8a9d841da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(supervisor_set_next_code_file_obj, 0, supervisor_set_
//| //|
//| def ticks_add(ticks, delta): //| def ticks_add(ticks, delta):
//| "Add a delta to a base number of ticks, performing wraparound at 2**29ms." //| "Add a delta to a base number of ticks, performing wraparound at 2**29ms."
//| return (a + b) % _TICKS_PERIOD //| return (ticks + delta) % _TICKS_PERIOD
//| //|
//| def ticks_diff(ticks1, ticks2): //| def ticks_diff(ticks1, ticks2):
//| "Compute the signed difference between two ticks values, assuming that they are within 2**28 ticks" //| "Compute the signed difference between two ticks values, assuming that they are within 2**28 ticks"