diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-09 10:03:56 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-09 10:03:56 +0000 |
commit | 8e8efedf205904ba59ddf38365034e932005384f (patch) | |
tree | 4df3a5bc03201038bde3f44f56f5c0f27ebc239e | |
parent | 8361acead560942ee09caae304703f31efa85f9d (diff) | |
download | ChibiOS-8e8efedf205904ba59ddf38365034e932005384f.tar.gz ChibiOS-8e8efedf205904ba59ddf38365034e932005384f.tar.bz2 ChibiOS-8e8efedf205904ba59ddf38365034e932005384f.zip |
Fixed tickles mode with 16 bits system time.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11136 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/nil/include/ch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h index 464219c45..aca77e2c8 100644 --- a/os/nil/include/ch.h +++ b/os/nil/include/ch.h @@ -1420,8 +1420,8 @@ struct nil_system { * @xclass
*/
#define chTimeIsInRangeX(time, start, end) \
- ((bool)(((systime_t)(time) - (systime_t)(start)) < \
- ((systime_t)(end) - (systime_t)(start))))
+ ((bool)((systime_t)((systime_t)(time) - (systime_t)(start)) < \
+ (systime_t)((systime_t)(end) - (systime_t)(start))))
/**
* @brief Function parameters check.
|