diff options
author | 2021-02-09 17:44:18 +0000 | |
---|---|---|
committer | 2021-02-09 17:44:18 +0000 | |
commit | 2281fd667a05f6fc6e9a12d8045cff49687a13ad (patch) | |
tree | 7628b69a29f6a41d07338a2b8694106524de8f53 /src/lib.rs | |
parent | c714cdf20e012280a5c722d190a121a6bce10ddc (diff) | |
parent | fdc3ab0b4817faa9f99f507afc6a4a992134fb48 (diff) | |
download | cortex-m-2281fd667a05f6fc6e9a12d8045cff49687a13ad.tar.gz cortex-m-2281fd667a05f6fc6e9a12d8045cff49687a13ad.tar.zst cortex-m-2281fd667a05f6fc6e9a12d8045cff49687a13ad.zip |
Merge #328
328: Prevent underflow when calling delay(n) with n<2 r=jonas-schievink a=ovidiusabou
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.
Co-authored-by: Ovidiu Sabou <ovidiu@sabou.org>
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions