Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: common/us_ticker_api.c
- Revision:
- 495:01cb89f68337
- Parent:
- 484:b5ae48b573d3
- Child:
- 525:c320967f86b9
--- a/common/us_ticker_api.c Fri Mar 20 09:15:08 2015 +0000 +++ b/common/us_ticker_api.c Fri Mar 20 09:30:08 2015 +0000 @@ -77,6 +77,10 @@ prev = p; p = p->next; } + + /* if we're at the end p will be NULL, which is correct */ + obj->next = p; + /* if prev is NULL we're at the head */ if (prev == NULL) { head = obj; @@ -84,8 +88,6 @@ } else { prev->next = obj; } - /* if we're at the end p will be NULL, which is correct */ - obj->next = p; __enable_irq(); }