diff options
author | 2021-02-08 23:00:39 +0200 | |
---|---|---|
committer | 2021-02-08 23:29:56 +0200 | |
commit | a2edb2250059b9563a78c3bd00a52ceaee4f063f (patch) | |
tree | f765c1ebc859288453db6dd03bb38814fe2b0f21 /asm/lib.rs | |
parent | c714cdf20e012280a5c722d190a121a6bce10ddc (diff) | |
download | cortex-m-a2edb2250059b9563a78c3bd00a52ceaee4f063f.tar.gz cortex-m-a2edb2250059b9563a78c3bd00a52ceaee4f063f.tar.zst cortex-m-a2edb2250059b9563a78c3bd00a52ceaee4f063f.zip |
Prevent underflow when calling delay(n) with n<2
Calling delay(1) causes a very long wait (freeze) otherwise.
86cd463788b97ca3894936101c6cf4f3512f0fbc introduced this behaviour by
changing the cycle count from n / 4 + 1 to n / 2 which forces an
underflow when n<2.
Diffstat (limited to 'asm/lib.rs')
0 files changed, 0 insertions, 0 deletions