mbed library sources
Dependents: STM32F103C8T6-RangoTec STM32-103C8_Plantilla_USB
Diff: common/Timer.cpp
- Revision:
- 359:9d7ef901f004
- Parent:
- 212:34d62c0b2af6
--- 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() {