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:
parent
8361acead5
commit
8e8efedf20
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue