mirror of https://github.com/rusefi/ChibiOS.git
Fixed bug #688.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8730 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
958435b034
commit
927be6a82c
|
@ -57,14 +57,12 @@ static inline void tm_stop(time_measurement_t *tmp,
|
|||
tmp->n++;
|
||||
tmp->last = (now - tmp->last) - offset;
|
||||
tmp->cumulative += (rttime_t)tmp->last;
|
||||
/*lint -save -e9013 [15.7] There is no else because it is not needed.*/
|
||||
if (tmp->last > tmp->worst) {
|
||||
tmp->worst = tmp->last;
|
||||
}
|
||||
else if (tmp->last < tmp->best) {
|
||||
if (tmp->last < tmp->best) {
|
||||
tmp->best = tmp->last;
|
||||
}
|
||||
/*lint -restore*/
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -76,6 +76,8 @@
|
|||
- OPT: Removed the p_msg field from the thread_t structure saving a
|
||||
msg_t-sized field from the structure. Messages now use a new field
|
||||
into the p_u union. Now synchnorous messages are even faster.
|
||||
- FIX: Fixed tm_stop - best case bug (bug #688)(backported to 16.1.0
|
||||
and 3.0.5).
|
||||
|
||||
*** 16.1.0 ***
|
||||
- RT: Added CodeWarrior compiler support to the e200 port.
|
||||
|
|
Loading…
Reference in New Issue