diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index ca3b8bf44..ebe2fe56e 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -157,8 +157,8 @@ static inline sysinterval_t chVTTimeElapsedSinceX(systime_t start) { /** * @brief Checks if the current system time is within the specified time * window. - * @note When start==end then the function returns always true because the - * whole time range is specified. + * @note When start==end then the function returns always false because the + * time window has zero size. * * @param[in] start the start of the time window (inclusive) * @param[in] end the end of the time window (non inclusive) @@ -175,8 +175,8 @@ static inline bool chVTIsSystemTimeWithinX(systime_t start, systime_t end) { /** * @brief Checks if the current system time is within the specified time * window. - * @note When start==end then the function returns always true because the - * whole time range is specified. + * @note When start==end then the function returns always false because the + * time window has zero size. * * @param[in] start the start of the time window (inclusive) * @param[in] end the end of the time window (non inclusive)