diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-02-15 14:31:49 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-02-17 12:17:28 +1100 |
| commit | b1cdb205ec42181434b2b3699dabd72dc8834e3c (patch) | |
| tree | f6a4ced7e8c7c13606802feaae3718deb2df6c4f /tests/micropython/native_misc.py | |
| parent | de1f1dd164958273c4ab62a46fdfe8a2f40ab1cf (diff) | |
shared/runtime/softtimer: Fix ticks range when computing ticks diff.
The previous computation incorrectly assumed that the uint32_t ticks
counter MICROPY_SOFT_TIMER_TICKS_MS was in the range [0,0x80000000) where
its actually [0,0xffffffff]. This means the diff calculation can be
simplified compared to the original implementation copied from
utime_mphal.c, which has to deal with a ticks range constrained by the
small int range.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/micropython/native_misc.py')
0 files changed, 0 insertions, 0 deletions
