git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12814 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2019-05-26 08:16:55 +00:00
parent defb1e6f8f
commit b2310dc96f
2 changed files with 3 additions and 1 deletions

View File

@ -450,7 +450,7 @@ static inline void chVTDoTickI(void) {
ch.vtlist.next->delta -= nowdelta;
/* Recalculating the next alarm time.*/
delta = chTimeDiffX(now, chTimeAddX(ch.vtlist.lasttime, vtp->delta));
delta = vtp->delta - chTimeDiffX(ch.vtlist.lasttime, now);
if (delta < (sysinterval_t)CH_CFG_ST_TIMEDELTA) {
delta = (sysinterval_t)CH_CFG_ST_TIMEDELTA;
}

View File

@ -96,6 +96,8 @@
- HAL: Added a new interface for range-finder devices (used by EX).
- HAL: Added mcuconf.h updater tool for STM32F407 (backported to 19.1.1).
- NIL: Integrated NIL 4.0.
- FIX: Fixed long intervals fail when interval type is larger than time type
(bug #1031)(backported to 19.1.3)(backported to 18.2.3).
- FIX: Fixed Round Robin check missing when in tick-less mode (bug #1030)
(backported to 19.1.3)(backported to 18.2.3).
- FIX: Fixed RCC_AHB1ENR_BKPSRAMEN not present in all STMF4xx devices