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-stm32l0l1-src-1 by
Diff: common/Timer.cpp
- Revision:
- 358:9d7ef901f004
- Parent:
- 212:34d62c0b2af6
- Child:
- 525:c320967f86b9
diff -r d73ca02bc818 -r 9d7ef901f004 common/Timer.cpp --- a/common/Timer.cpp Fri Oct 17 14:15:08 2014 +0100 +++ b/common/Timer.cpp Mon Oct 20 08:45:07 2014 +0100 @@ -23,8 +23,10 @@ } void Timer::start() { - _start = us_ticker_read(); - _running = 1; + if (!_running) { + _start = us_ticker_read(); + _running = 1; + } } void Timer::stop() {