diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-05-26 08:17:05 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-05-26 08:17:05 +0000 |
commit | feec0f67bb460358e4058620690e45b4e6ed8535 (patch) | |
tree | bd1a83dcf50f7dbba94da63903ab48a9fd8c4331 | |
parent | 158c0e054819865910c2a8b1793e95ec74f9f301 (diff) | |
download | ChibiOS-feec0f67bb460358e4058620690e45b4e6ed8535.tar.gz ChibiOS-feec0f67bb460358e4058620690e45b4e6ed8535.tar.bz2 ChibiOS-feec0f67bb460358e4058620690e45b4e6ed8535.zip |
Fixed bug #1031.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12815 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
-rw-r--r-- | os/rt/include/chvt.h | 2 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index 70c3182e6..f1bb4d9f2 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -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;
}
diff --git a/readme.txt b/readme.txt index 56eb019cf..707753ce6 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,8 @@ *****************************************************************************
*** 19.1.3 ***
+- FIX: Fixed long intervals fail when interval type is larger than time type
+ (bug #1031).
- FIX: Fixed Round Robin check missing when in tick-less mode (bug #1030).
- FIX: Fixed RCC_AHB1ENR_BKPSRAMEN not present in all STMF4xx devices
(bug #1029).
|