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
This commit is contained in:
Giovanni Di Sirio 2017-12-09 10:03:56 +00:00
parent 8361acead5
commit 8e8efedf20
1 changed files with 2 additions and 2 deletions

View File

@ -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.